Example #1
0
        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);
            };
        }
Example #2
0
 internal ShardStartException(ShardAgent agent, Exception innerException) : base($"Failure while trying to stop '{agent.ProjectionShardIdentity}'", innerException)
 {
 }
Example #3
0
 public ActionParameters(ShardAgent shard, Func <Task> action) : this(shard, action, shard.Cancellation)
 {
 }