Class DynamicHttpProxyInterceptor<TService>
Inheritance
System.Object
DynamicHttpProxyInterceptor<TService>
Implements
ITransientDependency
Assembly: Volo.Abp.Http.Client.dll
Syntax
public class DynamicHttpProxyInterceptor<TService> : AbpInterceptor, ITransientDependency
Type Parameters
| Name |
Description |
| TService |
|
Constructors
DynamicHttpProxyInterceptor(IDynamicProxyHttpClientFactory, IOptions<AbpHttpClientOptions>, IOptionsSnapshot<AbpRemoteServiceOptions>, IApiDescriptionFinder, IJsonSerializer, IRemoteServiceHttpClientAuthenticator, ICancellationTokenProvider, ICorrelationIdProvider, IOptions<AbpCorrelationIdOptions>, ICurrentTenant)
Declaration
public DynamicHttpProxyInterceptor(IDynamicProxyHttpClientFactory httpClientFactory, IOptions<AbpHttpClientOptions> clientOptions, IOptionsSnapshot<AbpRemoteServiceOptions> remoteServiceOptions, IApiDescriptionFinder apiDescriptionFinder, IJsonSerializer jsonSerializer, IRemoteServiceHttpClientAuthenticator clientAuthenticator, ICancellationTokenProvider cancellationTokenProvider, ICorrelationIdProvider correlationIdProvider, IOptions<AbpCorrelationIdOptions> correlationIdOptions, ICurrentTenant currentTenant)
Parameters
Properties
AbpCorrelationIdOptions
Declaration
protected AbpCorrelationIdOptions AbpCorrelationIdOptions { get; }
Property Value
| Type |
Description |
| AbpCorrelationIdOptions |
|
AbpRemoteServiceOptions
Declaration
protected AbpRemoteServiceOptions AbpRemoteServiceOptions { get; }
Property Value
ApiDescriptionFinder
Declaration
protected IApiDescriptionFinder ApiDescriptionFinder { get; }
Property Value
CancellationTokenProvider
Declaration
protected ICancellationTokenProvider CancellationTokenProvider { get; }
Property Value
ClientAuthenticator
Declaration
protected IRemoteServiceHttpClientAuthenticator ClientAuthenticator { get; }
Property Value
ClientOptions
Declaration
protected AbpHttpClientOptions ClientOptions { get; }
Property Value
CorrelationIdProvider
Declaration
protected ICorrelationIdProvider CorrelationIdProvider { get; }
Property Value
| Type |
Description |
| ICorrelationIdProvider |
|
CurrentTenant
Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
GenericInterceptAsyncMethod
Declaration
protected static MethodInfo GenericInterceptAsyncMethod { get; }
Property Value
| Type |
Description |
| MethodInfo |
|
HttpClientFactory
Declaration
protected IDynamicProxyHttpClientFactory HttpClientFactory { get; }
Property Value
JsonSerializer
Declaration
protected IJsonSerializer JsonSerializer { get; }
Property Value
| Type |
Description |
| IJsonSerializer |
|
Logger
Declaration
public ILogger<DynamicHttpProxyInterceptor<TService>> Logger { get; set; }
Property Value
Methods
Declaration
protected virtual void AddHeaders(IAbpMethodInvocation invocation, ActionApiDescriptionModel action, HttpRequestMessage requestMessage, ApiVersionInfo apiVersion)
Parameters
GetCancellationToken()
Declaration
protected virtual CancellationToken GetCancellationToken()
Returns
| Type |
Description |
| CancellationToken |
|
InterceptAsync(IAbpMethodInvocation)
Declaration
public override Task InterceptAsync(IAbpMethodInvocation invocation)
Parameters
| Type |
Name |
Description |
| IAbpMethodInvocation |
invocation |
|
Returns
Implements
ITransientDependency
Extension Methods