public void StartServer(string localHostIP, string serviceIP) { queueManager = new ServerRabbitMQ(localHostIP, serviceIP); queueManager.OnCommandReceive += queueManager_OnCommandReceive; queueManager.StartListening(); }
public void StopServer() { queueManager.StopListening(); queueManager = null; }