RedisGrainDirectory
class
Namespace: Orleans.GrainDirectory.Redis
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public class RedisGrainDirectory : IGrainDirectory, ILifecycleParticipant<ISiloLifecycle>, IAsyncDisposable, IDisposableConstructors
Methods
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.DisposeAsyncPerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.Initialize(CancellationToken)Lookup(GrainId)Lookup for aGrainAddressfor a given Grain ID.Participate(ISiloLifecycle)Adds the provided observer as a participant in the lifecycle.Register(GrainAddress)Register aGrainAddressentry in the directory. Only oneGrainAddressperGrainAddresscan be registered. If there is already an existing entry, the directory will not override it.Register(GrainAddress, GrainAddress?)Register aGrainAddressentry in the directory. Only oneGrainAddressperGrainAddresscan be registered. If there is already an existing entry, the directory will not override it.Unregister(GrainAddress)Unregisters the specifiedGrainAddressentry from the directory.UnregisterSilos(List<SiloAddress>)Unregisters all grain directory entries which point to any of the specified silos.
