Пример #1
0
 public ServerCommandProcessor()
 {
     mqttServer = IocContainer.Resolve <IMqttServerManager>();
     IocContainer.Resolve <IMessageProcessor>().Start(mqttServer);
 }
Пример #2
0
 public void Start(IMqttServerManager server)
 {
     mqttServer = server;
     mqttServer.MessageReceived += (s, e) =>
                                   ProcessMessage(e.Content);
 }