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); } }
public Task Start(AppFunc chain, IDictionary <string, object> settings, string environment, string[] arguments) { CommandPipeline.Use(chain); return(Task.CompletedTask); }