コード例 #1
0
 public void Close()
 {
     if (!messageReceiverCore.IsClosed)
     {
         messageReceiverCore.Close();
     }
 }
コード例 #2
0
 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;
     }
 }