public ProcessorOperationHandlerBase CreateHandler( ProcessorManagementService Svc, ProcessorOperation Operation) { switch (Operation.OperationType) { case ProcessorOperationType.Add: return new ProcessorOperationAddHandler(Svc, Operation); case ProcessorOperationType.Delete: return new ProcessorOperationDeleteHandler(Svc, Operation); case ProcessorOperationType.Pause: return new ProcessorOperationStatusChangeHandler(Svc, Operation); case ProcessorOperationType.Resume: return new ProcessorOperationStatusChangeHandler(Svc, Operation); case ProcessorOperationType.Stop: return new ProcessorOperationStatusChangeHandler(Svc, Operation); case ProcessorOperationType.DrainStop: return new ProcessorOperationStatusChangeHandler(Svc, Operation); case ProcessorOperationType.RuntimeStatusCheck: return new ProcessorOperationStatusChangeHandler(Svc, Operation); case ProcessorOperationType.Update: return new ProcessorOperationUpdateHandler(Svc, Operation); default: throw new InvalidOperationException("Can not identify Processor Operation"); } }
public ProcessorOperationHandlerBase CreateHandler( ProcessorManagementService Svc, ProcessorOperation Operation) { switch (Operation.OperationType) { case ProcessorOperationType.Add: return(new ProcessorOperationAddHandler(Svc, Operation)); case ProcessorOperationType.Delete: return(new ProcessorOperationDeleteHandler(Svc, Operation)); case ProcessorOperationType.Pause: return(new ProcessorOperationStatusChangeHandler(Svc, Operation)); case ProcessorOperationType.Resume: return(new ProcessorOperationStatusChangeHandler(Svc, Operation)); case ProcessorOperationType.Stop: return(new ProcessorOperationStatusChangeHandler(Svc, Operation)); case ProcessorOperationType.DrainStop: return(new ProcessorOperationStatusChangeHandler(Svc, Operation)); case ProcessorOperationType.RuntimeStatusCheck: return(new ProcessorOperationStatusChangeHandler(Svc, Operation)); case ProcessorOperationType.Update: return(new ProcessorOperationUpdateHandler(Svc, Operation)); default: throw new InvalidOperationException("Can not identify Processor Operation"); } }
public ProcessorOperationAddHandler( ProcessorManagementService svc, ProcessorOperation Opeartion) : base(svc, Opeartion) { }
public ProcessorOperationStatusChangeHandler( ProcessorManagementService svc, ProcessorOperation Operation) : base(svc, Operation) { }
public ProcessorManagementServiceRefInjector(ProcessorManagementService svc) { this.Svc = svc; }
public ProcessorOperationUpdateHandler( ProcessorManagementService svc, ProcessorOperation Operation) : base(svc, Operation) { }
public ProcessorManagementServiceOwinListenerSpec(ProcessorManagementService service) { this.service = service; }
public ProcessorOperationHandlerBase(ProcessorManagementService svc, ProcessorOperation Operation) { this.Svc = svc; this.processorOperation = Operation; }