/// <summary> /// Initializes the object with the containing subscription object. /// </summary> public ShutdownCallback(object server, ServerShutdownEventHandler handler) { try { m_server = server; m_handler = handler; // create connection point. m_connectionPoint = new ConnectionPoint(server, typeof(OpcRcw.Comn.IOPCShutdown).GUID); // advise. m_connectionPoint.Advise(this); } catch (Exception e) { throw new ServiceResultException(e, StatusCodes.BadOutOfService); } }