public static EventStreamBackedCommandOrchestrator CreateFromAttribute(EventStreamBackedCommandOrchestrationTriggerAttribute attr) { if (attr.InstanceIdentity.Equals(Guid.Empty)) { attr.InstanceIdentity = Guid.NewGuid(); } return(new EventStreamBackedCommandOrchestrator(attr.InstanceIdentity, attr.InstanceName)); }
protected internal virtual EventStreamBackedCommandOrchestrator GetCommandOrchestration(EventStreamBackedCommandOrchestrationTriggerAttribute attribute) { EventStreamBackedCommandOrchestrator commandOrchestration = this.cachedCommandOrchestrators.GetOrAdd( attribute, attr => { // TODO :: Need to get the domain context to go along with the command return(EventStreamBackedCommandOrchestrator.CreateFromAttribute(attribute)); }); return(commandOrchestration); }
public CommandOrchestrationClientAsyncCollector(EventStreamBackedCommandOrchestrationTriggerAttribute triggerAttribute) { // TODO: Set up according to the properties of the trigger attribute }
protected internal virtual IAsyncCollector <StartCommandOrchestrationArgs> CreateCommandAsyncCollector(EventStreamBackedCommandOrchestrationTriggerAttribute triggerAttribute) { // TODO: Load any system configuration settings... return(new CommandOrchestrationClientAsyncCollector(triggerAttribute)); }