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