Class AbpDaprClientFactory
Inheritance
object
AbpDaprClientFactory
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
Properties
DaprApiTokenProvider
Declaration
protected IDaprApiTokenProvider DaprApiTokenProvider { get; }
Property Value
DaprOptions
Declaration
protected AbpDaprOptions DaprOptions { get; }
Property Value
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
Returns
| Type |
Description |
| System.Text.Json.JsonSerializerOptions |
|
Implements
Extension Methods