Show / Hide Table of Contents

Class DynamicHttpProxyInterceptor<TService>

Inheritance
System.Object
DynamicHttpProxyInterceptor<TService>
Implements
ITransientDependency
Namespace: Volo.Abp.Http.Client.DynamicProxying
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
Type Name Description
IDynamicProxyHttpClientFactory httpClientFactory
IOptions<AbpHttpClientOptions> clientOptions
IOptionsSnapshot<AbpRemoteServiceOptions> remoteServiceOptions
IApiDescriptionFinder apiDescriptionFinder
IJsonSerializer jsonSerializer
IRemoteServiceHttpClientAuthenticator clientAuthenticator
ICancellationTokenProvider cancellationTokenProvider
ICorrelationIdProvider correlationIdProvider
IOptions<AbpCorrelationIdOptions> correlationIdOptions
ICurrentTenant currentTenant

Properties

AbpCorrelationIdOptions

Declaration
protected AbpCorrelationIdOptions AbpCorrelationIdOptions { get; }
Property Value
Type Description
AbpCorrelationIdOptions

AbpRemoteServiceOptions

Declaration
protected AbpRemoteServiceOptions AbpRemoteServiceOptions { get; }
Property Value
Type Description
AbpRemoteServiceOptions

ApiDescriptionFinder

Declaration
protected IApiDescriptionFinder ApiDescriptionFinder { get; }
Property Value
Type Description
IApiDescriptionFinder

CancellationTokenProvider

Declaration
protected ICancellationTokenProvider CancellationTokenProvider { get; }
Property Value
Type Description
ICancellationTokenProvider

ClientAuthenticator

Declaration
protected IRemoteServiceHttpClientAuthenticator ClientAuthenticator { get; }
Property Value
Type Description
IRemoteServiceHttpClientAuthenticator

ClientOptions

Declaration
protected AbpHttpClientOptions ClientOptions { get; }
Property Value
Type Description
AbpHttpClientOptions

CorrelationIdProvider

Declaration
protected ICorrelationIdProvider CorrelationIdProvider { get; }
Property Value
Type Description
ICorrelationIdProvider

CurrentTenant

Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
Type Description
ICurrentTenant

GenericInterceptAsyncMethod

Declaration
protected static MethodInfo GenericInterceptAsyncMethod { get; }
Property Value
Type Description
MethodInfo

HttpClientFactory

Declaration
protected IDynamicProxyHttpClientFactory HttpClientFactory { get; }
Property Value
Type Description
IDynamicProxyHttpClientFactory

JsonSerializer

Declaration
protected IJsonSerializer JsonSerializer { get; }
Property Value
Type Description
IJsonSerializer

Logger

Declaration
public ILogger<DynamicHttpProxyInterceptor<TService>> Logger { get; set; }
Property Value
Type Description
ILogger<DynamicHttpProxyInterceptor<TService>>

Methods

AddHeaders(IAbpMethodInvocation, ActionApiDescriptionModel, HttpRequestMessage, ApiVersionInfo)

Declaration
protected virtual void AddHeaders(IAbpMethodInvocation invocation, ActionApiDescriptionModel action, HttpRequestMessage requestMessage, ApiVersionInfo apiVersion)
Parameters
Type Name Description
IAbpMethodInvocation invocation
ActionApiDescriptionModel action
HttpRequestMessage requestMessage
ApiVersionInfo apiVersion

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
Type Description
Task

Implements

ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft