コード例 #1
0
 public void Dispose()
 {
     try
     {
         if (_isDisposed == false)
         {
             MessageBusWiter.Dispose();
             MessageBusReaderBank.Dispose();
             Tack.Dispose();
             _isDisposed = true;
         }
     }
     catch (Exception ex)
     {
         new ApplicationException(ex.Message, ex);
     }
 }
コード例 #2
0
 public void Dispose()
 {
     try
     {
         if (_isDisposed == false)
         {
             MessageBusWiter.Dispose();
             MessageBusReaderBank.Dispose();
             Tack.SkyWatch.UnWatch(typeof(IChatMessageEnvelope).ToString(), ServiceGUID); //NOTE: Must stop watching since SkyWatch is a global instance.
             Tack.Dispose();
             _isDisposed = true;
         }
     }
     catch (Exception ex)
     {
         new ApplicationException(ex.Message, ex);
     }
 }