Skip to content

JobShardManager.CreateShardAsync(DateTimeOffset, DateTimeOffset, IDictionary<string, string>, CancellationToken)

CreateShardAsync(DateTimeOffset, DateTimeOffset, IDictionary<string, string>, CancellationToken)

abstract
public abstract Task<IJobShard> CreateShardAsync(DateTimeOffset minDueTime, DateTimeOffset maxDueTime, IDictionary<string, string> metadata, CancellationToken cancellationToken)
Creates a new job shard owned by this silo.

Parameters

minDueTimeDateTimeOffset
The minimum due time for jobs in this shard.
maxDueTimeDateTimeOffset
The maximum due time for jobs in this shard.
metadataIDictionary<string, string>
Optional metadata for the shard.
cancellationTokenCancellationToken
Cancellation token.

Returns

The newly created job shard.