Table of Contents

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

tenantAccessor ITenantsAccessor

The 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

clusterName string

The name of the cluster.

tenantIdentifier string

The identifier of the tenant (optional).

targetedVersion string

The targeted version (optional).

serviceType NeosServiceType

The service type.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<string>

The Dapr ID.