AzureTableGrainDirectory
class
Namespace: Orleans.GrainDirectory.AzureStorage
Provides a grain directory backed by Azure Table Storage.
public class AzureTableGrainDirectory : IGrainDirectory, ILifecycleParticipant<ISiloLifecycle>Constructors
AzureTableGrainDirectory(AzureTableGrainDirectoryOptions, IOptions<ClusterOptions>, ILoggerFactory)Initializes a new instance of theAzureTableGrainDirectoryclass.
Methods
InitializeIfNeeded(CancellationToken)Initializes the Azure Table Storage table when required.Lookup(GrainId)Looks up the registered activation for a grain.Participate(ISiloLifecycle)Subscribes the grain directory to the silo lifecycle.Register(GrainAddress)Registers a grain activation if no registration exists for the grain.Register(GrainAddress, GrainAddress?)Registers a grain activation, replacing the specified previous registration when it is current.Unregister(GrainAddress)Removes a grain activation when the stored activation identifier matches the supplied address.UnregisterMany(List<GrainAddress>)Removes grain activations whose stored activation identifiers match the supplied addresses.UnregisterSilos(List<SiloAddress>)Completes the silo cleanup callback. Azure Table entries are cleaned up through activation-specific unregister operations.
