Show / Hide Table of Contents

Class AbpDaprClientFactory

Inheritance
object
AbpDaprClientFactory
Implements
IAbpDaprClientFactory
ISingletonDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Dapr
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
Type Name Description
IOptions<AbpDaprOptions> options
IOptions<AbpSystemTextJsonSerializerOptions> systemTextJsonSerializerOptions
IDaprApiTokenProvider daprApiTokenProvider
ICurrentTenant currentTenant
ICorrelationIdProvider correlationIdProvider
IOptions<AbpCorrelationIdOptions> abpCorrelationIdOptions
IRemoteServiceHttpClientAuthenticator remoteServiceHttpClientAuthenticator

Properties

AbpCorrelationIdOptions

Declaration
protected IOptions<AbpCorrelationIdOptions> AbpCorrelationIdOptions { get; }
Property Value
Type Description
IOptions<AbpCorrelationIdOptions>

CorrelationIdProvider

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

CurrentTenant

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

DaprApiTokenProvider

Declaration
protected IDaprApiTokenProvider DaprApiTokenProvider { get; }
Property Value
Type Description
IDaprApiTokenProvider

DaprOptions

Declaration
protected AbpDaprOptions DaprOptions { get; }
Property Value
Type Description
AbpDaprOptions

JsonSerializerOptions

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

RemoteServiceHttpClientAuthenticator

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

Methods

AddHeaders(HttpClient)

Declaration
protected virtual void AddHeaders(HttpClient httpClient)
Parameters
Type Name Description
HttpClient httpClient

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
Type Name Description
string appId
string daprEndpoint
string daprApiToken
Returns
Type Description
Task<HttpClient>

CreateJsonSerializerOptions(AbpSystemTextJsonSerializerOptions)

Declaration
protected virtual JsonSerializerOptions CreateJsonSerializerOptions(AbpSystemTextJsonSerializerOptions systemTextJsonSerializerOptions)
Parameters
Type Name Description
AbpSystemTextJsonSerializerOptions systemTextJsonSerializerOptions
Returns
Type Description
JsonSerializerOptions

Implements

IAbpDaprClientFactory
ISingletonDependency

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