MembershipTableTestFixture
class
Namespace: Orleans.Clustering.TestKit
Owns isolated cluster scopes, independent handles, initialization, and bounded teardown.
public sealed class MembershipTableTestFixture : IAsyncDisposableConstructors
MembershipTableTestFixture(string, Func<string, CancellationToken, ValueTask<MembershipTableTestHandle>>, Func<string, CancellationToken, ValueTask<bool>>, string?)Creates a fixture from an asynchronous cluster-aware factory with explicit ownership.MembershipTableTestFixture(string, Func<string, IMembershipTable>, Func<string, CancellationToken, ValueTask<bool>>, string?)Creates a fixture from a synchronous factory accepting each requested cluster ID.MembershipTableTestFixture(string, Func<string, string, CancellationToken, ValueTask<MembershipTableTestHandle>>, Func<string, CancellationToken, ValueTask<bool>>, string?)Creates a fixture. All handles use the same service ID and backend, but the supplied cluster ID.
Properties
ClusterIdGets the first isolated cluster ID.FirstGets the first provider handle after initialization.OtherClusterGets the provider for the second cluster.OtherClusterIdGets the second isolated cluster ID.ProviderNameGets the diagnostic provider label. Do not put credentials in this value.SecondGets a separately constructed provider for the first cluster.ServiceIdGets the common service ID.
Methods
CreateAdditionalHandleAsync(string, CancellationToken)Acquires another handle in one of this fixture's owned scopes. Initialization is explicit.DisposeAsyncWaits up to 30 seconds for cleanup. Owners remain alive until their cleanup operations complete.InitializeAsync(CancellationToken)Constructs and initializes the three required handles. Partial failures clean up acquired resources.RunAsync(Func<MembershipTableTestFixture, CancellationToken, Task>, CancellationToken)Runs a complete isolated case and preserves its primary failure if teardown also fails.
