public void Dispose() { if (_isDisposed == false) { MessageBusReaderBank.Dispose(); MessageBusWiter.Dispose(); } }
public void Dispose() { try { if (_isDisposed == false) { MessageBusWiter.Dispose(); MessageBusReaderBank.Dispose(); Tack.Dispose(); _isDisposed = true; } } catch (Exception ex) { new ApplicationException(ex.Message, ex); } }
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); } }
public void AddMessageToBus(string message) { lock (_thisLock) { try { if (MessageBusWiter == null) { throw new InvalidOperationException(ExceptionMessage_MessageBusWriterCannotBeNull); } else { MessageBusWiter.Write(message); } } catch (Exception ex) { throw new ApplicationException(ex.Message, ex); } } }