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)

Declaration
public AbpDaprClientFactory(IOptions<AbpDaprOptions> options, IOptions<AbpSystemTextJsonSerializerOptions> systemTextJsonSerializerOptions, IDaprApiTokenProvider daprApiTokenProvider)
Parameters
Type Name Description
Microsoft.Extensions.Options.IOptions<TOptions><AbpDaprOptions> options
Microsoft.Extensions.Options.IOptions<TOptions><AbpSystemTextJsonSerializerOptions> systemTextJsonSerializerOptions
IDaprApiTokenProvider daprApiTokenProvider

Properties

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
System.Text.Json.JsonSerializerOptions

Methods

Create(Action<DaprClientBuilder>)

Declaration
public virtual DaprClient Create(Action<DaprClientBuilder> builderAction = null)
Parameters
Type Name Description
System.Action<T><DaprClientBuilder> builderAction
Returns
Type Description
Dapr.Client.DaprClient

CreateHttpClient(string, string, string)

Declaration
public virtual HttpClient CreateHttpClient(string appId = null, string daprEndpoint = null, string daprApiToken = null)
Parameters
Type Name Description
string appId
string daprEndpoint
string daprApiToken
Returns
Type Description
System.Net.Http.HttpClient

CreateJsonSerializerOptions(AbpSystemTextJsonSerializerOptions)

Declaration
protected virtual JsonSerializerOptions CreateJsonSerializerOptions(AbpSystemTextJsonSerializerOptions systemTextJsonSerializerOptions)
Parameters
Type Name Description
AbpSystemTextJsonSerializerOptions systemTextJsonSerializerOptions
Returns
Type Description
System.Text.Json.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>>)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In This Article
Back to top Powered by Volosoft