void DisposeMessageHandling() { if (messagingClient != null) { messagingClient.Dispose(); messagingClient = null; } if (messageTransport != null) { messageTransport.Dispose(); messageTransport = null; } }