private static StateHandlerCollection GetStateHandlers(JobStorage storage) { var stateHandlers = new StateHandlerCollection(); stateHandlers.AddRange(GlobalStateHandlers.Handlers); stateHandlers.AddRange(storage.GetStateHandlers()); return stateHandlers; }
public StateMachineFactory(JobStorage storage) { if (storage == null) throw new ArgumentNullException("storage"); _handlers = new StateHandlerCollection(); _handlers.AddRange(GlobalStateHandlers.Handlers); _handlers.AddRange(storage.GetStateHandlers()); }
private static StateHandlerCollection GetStateHandlers(JobStorage storage) { var stateHandlers = new StateHandlerCollection(); stateHandlers.AddRange(GlobalStateHandlers.Handlers); stateHandlers.AddRange(storage.GetStateHandlers()); return(stateHandlers); }
public StateMachineFactory(JobStorage storage) { if (storage == null) { throw new ArgumentNullException("storage"); } _handlers = new StateHandlerCollection(); _handlers.AddRange(GlobalStateHandlers.Handlers); _handlers.AddRange(storage.GetStateHandlers()); }