public void Close() { if (!messageReceiverCore.IsClosed) { messageReceiverCore.Close(); } }
protected override void OnClose(TimeSpan timeout) { try { Microsoft.ServiceBus.Messaging.MessageReceiver messageReceiver = this.messageReceiver; if (messageReceiver != null) { messageReceiver.Close(timeout); } } catch (Exception exception) { this.OnException(exception); throw; } }