public ServerCommandProcessor() { mqttServer = IocContainer.Resolve <IMqttServerManager>(); IocContainer.Resolve <IMessageProcessor>().Start(mqttServer); }
public void Start(IMqttServerManager server) { mqttServer = server; mqttServer.MessageReceived += (s, e) => ProcessMessage(e.Content); }