protected override void Dispose(bool disposing) { try { lock (_lockObj) { try { _wcfClientService.Close(); var service = new NetTcpDuplexWcfClientService <ITLAutoDevicePushService>(_callback, _allCheckButtonItems[0].ServiceAddress); service.Send(proxy => { proxy.UnRegistControlDeviceEx(RegKey, CommonConfigHelper.PLCServiceKey); }); service.Close(); } catch (Exception ex) { _log.Critical(ex.Message); } _allCheckButtonItems = null; _raiseButtonItems.Clear(); _callback.Notify -= Callback_Notify; _callback = null; } } catch (Exception ex) { _log.Critical(ex.Message); } }
protected override void LogCommunicationException(CommunicationException ce) { _log.Critical(ce.Message, ce); }
private static void SendWcfCommand_TimeoutError(object sender, WcfClientServiceErrorEventArgs e) { Log.Critical(e.Msg, e.Ex); }
protected override void Exception(Exception ex) { _log.Critical(ex.Message, ex); }