Show / Hide Table of Contents

Class DynamicHttpProxyInterceptor<TService>

Inheritance
object
AbpInterceptor
DynamicHttpProxyInterceptor<TService>
Implements
IAbpInterceptor
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Http.Client.DynamicProxying
Assembly: Volo.Abp.Http.Client.dll
Syntax
public class DynamicHttpProxyInterceptor<TService> : AbpInterceptor, IAbpInterceptor, ITransientDependency
Type Parameters
Name Description
TService

Constructors

DynamicHttpProxyInterceptor(DynamicHttpProxyInterceptorClientProxy<TService>, IOptions<AbpHttpClientOptions>, IProxyHttpClientFactory, IRemoteServiceConfigurationProvider, IApiDescriptionFinder)

Declaration
public DynamicHttpProxyInterceptor(DynamicHttpProxyInterceptorClientProxy<TService> interceptorClientProxy, IOptions<AbpHttpClientOptions> clientOptions, IProxyHttpClientFactory httpClientFactory, IRemoteServiceConfigurationProvider remoteServiceConfigurationProvider, IApiDescriptionFinder apiDescriptionFinder)
Parameters
Type Name Description
DynamicHttpProxyInterceptorClientProxy<TService> interceptorClientProxy
IOptions<AbpHttpClientOptions> clientOptions
IProxyHttpClientFactory httpClientFactory
IRemoteServiceConfigurationProvider remoteServiceConfigurationProvider
IApiDescriptionFinder apiDescriptionFinder

Properties

ApiDescriptionFinder

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

CallRequestAsyncMethod

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

ClientOptions

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

HttpClientFactory

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

InterceptorClientProxy

Declaration
protected DynamicHttpProxyInterceptorClientProxy<TService> InterceptorClientProxy { get; }
Property Value
Type Description
DynamicHttpProxyInterceptorClientProxy<TService>

Logger

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

RemoteServiceConfigurationProvider

Declaration
protected IRemoteServiceConfigurationProvider RemoteServiceConfigurationProvider { get; }
Property Value
Type Description
IRemoteServiceConfigurationProvider

Methods

CallRequestAsync<T>(ClientProxyRequestContext)

Declaration
protected virtual Task<T> CallRequestAsync<T>(ClientProxyRequestContext context)
Parameters
Type Name Description
ClientProxyRequestContext context
Returns
Type Description
Task<T>
Type Parameters
Name Description
T

GetActionApiDescriptionModel(IAbpMethodInvocation)

Declaration
protected virtual Task<ActionApiDescriptionModel> GetActionApiDescriptionModel(IAbpMethodInvocation invocation)
Parameters
Type Name Description
IAbpMethodInvocation invocation
Returns
Type Description
Task<ActionApiDescriptionModel>

GetResultAsync(Task, Type)

Declaration
protected virtual Task<object> GetResultAsync(Task task, Type resultType)
Parameters
Type Name Description
Task task
Type resultType
Returns
Type Description
Task<object>

InterceptAsync(IAbpMethodInvocation)

Declaration
public override Task InterceptAsync(IAbpMethodInvocation invocation)
Parameters
Type Name Description
IAbpMethodInvocation invocation
Returns
Type Description
Task
Overrides
AbpInterceptor.InterceptAsync(IAbpMethodInvocation)

Implements

IAbpInterceptor
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform