Class AbpDaprClientFactory
Inheritance
AbpDaprClientFactory
Assembly: Volo.Abp.Dapr.dll
Syntax
public class AbpDaprClientFactory : IAbpDaprClientFactory, ISingletonDependency
Constructors
AbpDaprClientFactory(IOptions<AbpDaprOptions>, IOptions<AbpSystemTextJsonSerializerOptions>, IDaprApiTokenProvider, ICurrentTenant, ICorrelationIdProvider, IOptions<AbpCorrelationIdOptions>, IRemoteServiceHttpClientAuthenticator)
Declaration
public AbpDaprClientFactory(IOptions<AbpDaprOptions> options, IOptions<AbpSystemTextJsonSerializerOptions> systemTextJsonSerializerOptions, IDaprApiTokenProvider daprApiTokenProvider, ICurrentTenant currentTenant, ICorrelationIdProvider correlationIdProvider, IOptions<AbpCorrelationIdOptions> abpCorrelationIdOptions, IRemoteServiceHttpClientAuthenticator remoteServiceHttpClientAuthenticator)
Parameters
Properties
AbpCorrelationIdOptions
Declaration
protected IOptions<AbpCorrelationIdOptions> AbpCorrelationIdOptions { get; }
Property Value
CorrelationIdProvider
Declaration
protected ICorrelationIdProvider CorrelationIdProvider { get; }
Property Value
CurrentTenant
Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
DaprApiTokenProvider
Declaration
protected IDaprApiTokenProvider DaprApiTokenProvider { get; }
Property Value
DaprOptions
Declaration
protected AbpDaprOptions DaprOptions { get; }
Property Value
JsonSerializerOptions
Declaration
protected JsonSerializerOptions JsonSerializerOptions { get; }
Property Value
RemoteServiceHttpClientAuthenticator
Declaration
protected IRemoteServiceHttpClientAuthenticator RemoteServiceHttpClientAuthenticator { get; }
Property Value
Methods
Declaration
protected virtual void AddHeaders(HttpClient httpClient)
Parameters
CreateAsync(Action<DaprClientBuilder>?)
Declaration
public virtual Task<DaprClient> CreateAsync(Action<DaprClientBuilder>? builderAction = null)
Parameters
Type |
Name |
Description |
Action<DaprClientBuilder> |
builderAction |
|
Returns
Type |
Description |
Task<DaprClient> |
|
CreateHttpClientAsync(string?, string?, string?)
Declaration
public virtual Task<HttpClient> CreateHttpClientAsync(string? appId = null, string? daprEndpoint = null, string? daprApiToken = null)
Parameters
Returns
CreateJsonSerializerOptions(AbpSystemTextJsonSerializerOptions)
Declaration
protected virtual JsonSerializerOptions CreateJsonSerializerOptions(AbpSystemTextJsonSerializerOptions systemTextJsonSerializerOptions)
Parameters
Returns
Implements
Extension Methods