Beispiel #1
0
        public async Task Send <TCommand>(TCommand command)
        {
            var commandId = Guid.NewGuid();

            using (_environment.OpenCommandContext(command, commandId))
                using (_environment.OpenCausationContext(commandId.ToString()))
                {
                    await CommandPipeline.CurrentPipeline(_environment).ConfigureAwait(false);
                }
        }
Beispiel #2
0
        public Task Start(AppFunc chain, IDictionary <string, object> settings, string environment, string[] arguments)
        {
            CommandPipeline.Use(chain);

            return(Task.CompletedTask);
        }