Exemplo n.º 1
0
 public Channel(Guid correlationId, IRegisterEvent eventRegister, IEnqueue <MessagePackage> enqueue)
 {
     _senderLock    = new Lock();
     _correlationId = correlationId;
     _eventRegister = eventRegister;
     _enqueue       = enqueue;
 }
 public OrderingProcessMessageRouter(IPeekableChannel incomingMessages,
                                     IEnqueue outgoingBaristaMessages,
                                     IEnqueue outgoingCustomerMessages,
                                     IEnqueue outgoingRegisterMessages,
                                     IEnqueue abandonedMessagesChannel, 
                                     IEnqueue statusChannel)
 {
     _AbandonedMessagesChannel = abandonedMessagesChannel;
     _StatusChannel = statusChannel;
     _OutgoingRegisterMessages = outgoingRegisterMessages;
     _OutgoingCustomerMessages = outgoingCustomerMessages;
     _IncomingMessages = incomingMessages;
     _OutgoingBaristaMessages = outgoingBaristaMessages;
 }
 public RegisterActor(IEnqueue requestChannel, IEnumerable<IMessage> responseChannel)
 {
     RegisterId = new Guid().ToString();
     _RequestChannel = requestChannel;
     _ResponseChannel = responseChannel;
 }