public static EventStreamBackedQueryOrchestrator CreateFromAttribute(EventStreamBackedQueryOrchestrationTriggerAttribute attr) { if (attr.InstanceIdentity.Equals(Guid.Empty)) { attr.InstanceIdentity = Guid.NewGuid(); } return(new EventStreamBackedQueryOrchestrator(attr.InstanceIdentity, attr.InstanceName)); }
public QueryOrchestrationClientAsyncCollector(EventStreamBackedQueryOrchestrationTriggerAttribute triggerAttribute) { // TODO - Set the collector up per the trigger attribute properties }
protected internal virtual IAsyncCollector <StartQueryOrchestrationArgs> CreateQueryAsyncCollector(EventStreamBackedQueryOrchestrationTriggerAttribute triggerAttribute) { // TODO: Load any system configuration settings... return(new QueryOrchestrationClientAsyncCollector(triggerAttribute)); }
protected internal virtual EventStreamBackedQueryOrchestrator GetQueryOrchestration(EventStreamBackedQueryOrchestrationTriggerAttribute attribute) { EventStreamBackedQueryOrchestrator queryOrchestration = this.cachedQueryOrchestrators.GetOrAdd( attribute, attr => { // TODO :: Need to get the domain context to go along with the command return(EventStreamBackedQueryOrchestrator.CreateFromAttribute(attribute)); }); return(queryOrchestration); }