示例#1
0
 public MessageProcessing(MessagesStorage messagesStorage, MessageConverter messageConverter, MessageController messageController, LogWriter logWriter)
 {
     m_messagesStorage   = messagesStorage;
     m_messageConverter  = messageConverter;
     m_messageController = messageController;
     m_logWriter         = logWriter;
     Task.Run(() => ProcessMessage());
 }
示例#2
0
 public HelloWorldService()
 {
     m_messagesStorage   = new MessagesStorage();
     m_messageConverter  = new MessageConverter();
     m_messageController = new MessageController();
     m_logWriter         = new LogWriter();
     m_messageProcessing = new MessageProcessing(m_messagesStorage, m_messageConverter, m_messageController, m_logWriter);
 }