Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public ReplyCommandTranslator(IPartFactory partFactory, CommandFactory commandFactory, ReplyFactory replyFactory)
 {
     _partFactory    = partFactory;
     _commandFactory = commandFactory;
     _replyFactory   = replyFactory;
 }