protected virtual void OnShutdown(OpcShutdownEventArgs args) { EventHandler <OpcShutdownEventArgs> handler = Shutdown; if (handler != null) { handler(this, args); } }
protected virtual void OnShutdown(OpcShutdownEventArgs e) { var handler = Shutdown; if (handler != null) { handler(this, e); } }
private void OnShutdown(object sender, OpcShutdownEventArgs args) { try { DisconnectImpl(); } catch (Exception ex) { Log.Error("Disconnect failed.", ex); } try { OnShutdown(new OpcShutdownEventArgs(args.Reason, args.Error)); } catch (Exception ex) { Log.ErrorFormat("Error during shutdown of '{0}' opc server.", ex, Uri); } }
protected virtual void OnShutdown(OpcShutdownEventArgs e) { var handler = Shutdown; if (handler != null) handler(this, e); }