示例#1
0
 //////////////////////////////
 public void Send(IMessageDataOutgoing pMessageData, MessageDataOutgoingSettings pMessageDataToSendSettings)
 {
     if (_bDoWork)
     {
         _oMessagesQueue.Value.Enqueue(new MessageToSendOnQueue(pMessageData, pMessageDataToSendSettings));
     }
 }
 //////////////////////////////
 //        CONSTRUCTORS      //
 //////////////////////////////
 public MessageToSendOnQueueError(IMessageDataOutgoing pMessageData, MessageDataOutgoingSettings pMessageDataToSendSettings)
     : base(pMessageData, pMessageDataToSendSettings)
 {
 }
 //////////////////////////////
 //        CONSTRUCTORS      //
 //////////////////////////////
 public MessageToSendOnQueue(IMessageDataOutgoing pMessageDataToSend, MessageDataOutgoingSettings pMessageDataToSendSettings)
 {
     _oMessageDataToSend = pMessageDataToSend;
     _oMessageDataToSendSettings = pMessageDataToSendSettings;
     _oMessageID = Guid.NewGuid();
 }