public ActionParameters(ShardAgent shard, Func <Task> action, CancellationToken cancellation) { Cancellation = cancellation; Shard = shard; Action = action; LogAction = (logger, ex) => { logger.LogError(ex, "Error in Async Projection '{ShardName}' / '{Message}'", Shard.ShardName.Identity, ex.Message); }; }
internal ShardStartException(ShardAgent agent, Exception innerException) : base($"Failure while trying to stop '{agent.ProjectionShardIdentity}'", innerException) { }
public ActionParameters(ShardAgent shard, Func <Task> action) : this(shard, action, shard.Cancellation) { }