Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        public ApiDescriptionCache(IDynamicProxyHttpClientFactory httpClientFactory)
        {
            _httpClientFactory = httpClientFactory;

            _cache     = new Dictionary <string, ApplicationApiDescriptionModel>();
            _asyncLock = new AsyncLock();
        }
Esempio n. 3
0
 public ApiDescriptionFinder(
     IApiDescriptionCache cache,
     IDynamicProxyHttpClientFactory httpClientFactory)
 {
     Cache                     = cache;
     HttpClientFactory         = httpClientFactory;
     CancellationTokenProvider = NullCancellationTokenProvider.Instance;
 }
Esempio n. 4
0
 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;
 }
Esempio n. 6
0
        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;
        }