public ProtocolHandler(IDeviceHandler deviceHandler, ConfirmationFactory confirmationFactory, ReplyFactory replyFactory, OrderFactory orderFactory, CommandTranslator commandTranslator, ResponseAwaiterDispatch awaiterDispatch) { _deviceHandler = deviceHandler; _confirmationFactory = confirmationFactory; _replyFactory = replyFactory; _orderFactory = orderFactory; _commandTranslator = commandTranslator; _awaiterDispatch = awaiterDispatch; _deviceHandler.CommandReceived += OnCommandReceived; }
public ReplyCommandTranslator(IPartFactory partFactory, CommandFactory commandFactory, ReplyFactory replyFactory) { _partFactory = partFactory; _commandFactory = commandFactory; _replyFactory = replyFactory; }