public static EventStreamBackedClassifierOrchestrator CreateFromAttribute(EventStreamBackedClassifierOrchestrationTriggerAttribute attr)
 {
     if (attr.InstanceIdentity.Equals(Guid.Empty))
     {
         attr.InstanceIdentity = Guid.NewGuid();
     }
     return(new EventStreamBackedClassifierOrchestrator(attr.InstanceIdentity, attr.InstanceName));
 }
 public ClassifierOrchestrationClientAsyncCollector(EventStreamBackedClassifierOrchestrationTriggerAttribute triggerAttribute)
 {
     // TODO : Set up the collector according to the parameters of the trigger attribute
 }
 protected internal virtual IAsyncCollector <StartClassifierOrchestrationArgs> CreateClassifierAsyncCollector(EventStreamBackedClassifierOrchestrationTriggerAttribute triggerAttribute)
 {
     // TODO: Load any system configuration settings...
     return(new ClassifierOrchestrationClientAsyncCollector(triggerAttribute));
 }
        protected internal virtual EventStreamBackedClassifierOrchestrator GetClassifierOrchestration(EventStreamBackedClassifierOrchestrationTriggerAttribute attribute)
        {
            EventStreamBackedClassifierOrchestrator classifierOrchestration = this.cachedClassifierOrchestrators.GetOrAdd(
                attribute,
                attr =>
            {
                // TODO :: Need to get the domain context to go along with the command
                return(EventStreamBackedClassifierOrchestrator.CreateFromAttribute(attribute));
            });

            return(classifierOrchestration);
        }