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) { CancellationTokenProvider = cancellationTokenProvider; CorrelationIdProvider = correlationIdProvider; CurrentTenant = currentTenant; AbpCorrelationIdOptions = correlationIdOptions.Value; HttpClientFactory = httpClientFactory; ApiDescriptionFinder = apiDescriptionFinder; JsonSerializer = jsonSerializer; ClientAuthenticator = clientAuthenticator; ClientOptions = clientOptions.Value; AbpRemoteServiceOptions = remoteServiceOptions.Value; Logger = NullLogger <DynamicHttpProxyInterceptor <TService> > .Instance; }
public ApiDescriptionCache(IDynamicProxyHttpClientFactory httpClientFactory) { _httpClientFactory = httpClientFactory; _cache = new Dictionary <string, ApplicationApiDescriptionModel>(); _asyncLock = new AsyncLock(); }
public ApiDescriptionFinder( IApiDescriptionCache cache, IDynamicProxyHttpClientFactory httpClientFactory) { Cache = cache; HttpClientFactory = httpClientFactory; CancellationTokenProvider = NullCancellationTokenProvider.Instance; }
public ConsulDynamicHttpProxyInterceptor(IDynamicProxyHttpClientFactory httpClientFactory, IOptions <AbpHttpClientOptions> clientOptions, IOptionsSnapshot <AbpRemoteServiceOptions> remoteServiceOptions, IApiDescriptionFinder apiDescriptionFinder, IJsonSerializer jsonSerializer, IRemoteServiceHttpClientAuthenticator clientAuthenticator, ICancellationTokenProvider cancellationTokenProvider, ICorrelationIdProvider correlationIdProvider, IOptions <AbpCorrelationIdOptions> correlationIdOptions, ICurrentTenant currentTenant) : base( httpClientFactory, clientOptions, remoteServiceOptions, apiDescriptionFinder, jsonSerializer, clientAuthenticator, cancellationTokenProvider, correlationIdProvider, correlationIdOptions, currentTenant) { }
public DynamicHttpProxyInterceptor( IDynamicProxyHttpClientFactory httpClientFactory, IOptions <AbpHttpClientOptions> clientOptions, IOptionsSnapshot <RemoteServiceOptions> remoteServiceOptions, IApiDescriptionFinder apiDescriptionFinder, IJsonSerializer jsonSerializer) { _httpClientFactory = httpClientFactory; _apiDescriptionFinder = apiDescriptionFinder; _jsonSerializer = jsonSerializer; _clientOptions = clientOptions.Value; _remoteServiceOptions = remoteServiceOptions.Value; }
public DynamicDaprActorProxyInterceptor( IOptions <AbpDaprActorProxyOptions> daprActorProxyOptions, IOptionsSnapshot <AbpDaprRemoteServiceOptions> daprActorOptions, IDynamicProxyHttpClientFactory httpClientFactory, IRemoteServiceHttpClientAuthenticator clientAuthenticator, ICurrentTenant currentTenant) { CurrentTenant = currentTenant; HttpClientFactory = httpClientFactory; ClientAuthenticator = clientAuthenticator; DaprActorProxyOptions = daprActorProxyOptions.Value; DaprServiceOptions = daprActorOptions.Value; Logger = NullLogger <DynamicDaprActorProxyInterceptor <TService> > .Instance; }
public DynamicHttpProxyInterceptor( IDynamicProxyHttpClientFactory httpClientFactory, IOptions <AbpHttpClientOptions> clientOptions, IOptionsSnapshot <RemoteServiceOptions> remoteServiceOptions, IApiDescriptionFinder apiDescriptionFinder, IJsonSerializer jsonSerializer, IRemoteServiceHttpClientAuthenticator clientAuthenticator) { _httpClientFactory = httpClientFactory; _apiDescriptionFinder = apiDescriptionFinder; _jsonSerializer = jsonSerializer; _clientAuthenticator = clientAuthenticator; _clientOptions = clientOptions.Value; _remoteServiceOptions = remoteServiceOptions.Value; Logger = NullLogger <DynamicHttpProxyInterceptor <TService> > .Instance; }