Exemple #1
0
        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);
            }
        }
Exemple #3
0
        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);
 }