Class DaprIdProvider
- Namespace
- GroupeIsa.Neos.ClusterCommunication.Multitenant
- Assembly
- GroupeIsa.Neos.ClusterCommunication.dll
Represents a provider to get the Dapr Id.
public class DaprIdProvider : IDaprIdProvider
- Inheritance
-
DaprIdProvider
- Implements
- Inherited Members
Constructors
DaprIdProvider(ITenantsAccessor)
Initializes a new instance of the DaprIdProvider class.
public DaprIdProvider(ITenantsAccessor tenantAccessor)
Parameters
tenantAccessorITenantsAccessorThe tenant accessor.
Methods
GetDaprIdAsync(string, string?, string?, NeosServiceType, CancellationToken)
Gets the Dapr ID asynchronously.
public Task<string> GetDaprIdAsync(string clusterName, string? tenantIdentifier = null, string? targetedVersion = null, NeosServiceType serviceType = NeosServiceType.BackEnd, CancellationToken cancellationToken = default)
Parameters
clusterNamestringThe name of the cluster.
tenantIdentifierstringThe identifier of the tenant (optional).
targetedVersionstringThe targeted version (optional).
serviceTypeNeosServiceTypeThe service type.
cancellationTokenCancellationTokenThe cancellation token.