public Starting(Transition.IFactory transitionFactory, Device.IFactory deviceFactory, Messaging.Facade.IFactory messagingFacadeFactory, IEnumerable <string> devices) { _transitionFactory = transitionFactory; _deviceFactory = deviceFactory; _messagingFacadeFactory = messagingFacadeFactory; _devices = (devices ?? Enumerable.Empty <string>()).ToArray(); }
public Factory(Device.IFactory deviceFactory, Transition.IFactory transitionFactory, Messaging.Facade.IFactory messagingFacadeFactory, ILogic logic, IOptions <Config> config) { _deviceFactory = deviceFactory; _messagingFacadeFactory = messagingFacadeFactory; _transitionFactory = transitionFactory; _logic = logic; _config = config; }