Skip to content

GrainStreamQueueCheckpointerFactory Methods

Creates grain-based stream queue checkpointers.

Create(string)

View source
[System.Obsolete(Use the overload which accepts a CancellationToken.)]
public Task<IStreamQueueCheckpointer<string>> Create(string partition)
Creates a stream checkpointer for the specified partition.

Parameters

partitionstring
The partition.

Returns

The stream checkpointer.

Create(string, CancellationToken)

View source
public Task<IStreamQueueCheckpointer<string>> Create(string partition, CancellationToken cancellationToken)
Creates a stream checkpointer for the specified partition.

Parameters

partitionstring
The partition.
cancellationTokenCancellationToken
The cancellation token.

Returns

The stream checkpointer.

CreateFactory(IServiceProvider, string)

static
View source
public static IStreamQueueCheckpointerFactory CreateFactory(IServiceProvider services, string providerName)
Creates a factory from a service provider.

Parameters

servicesIServiceProvider
providerNamestring