/// <summary> /// Initializes the process framework node wrapper using the specified <paramref name="nodeId" /> for the node. /// </summary> /// <param name="extension">The extension.</param> /// <param name="nodeId">The node identifier.</param> /// <returns> /// Returns <see cref="Boolean" /> representing <c>true</c> if the node was successfully initialized; otherwise /// <c>false</c>. /// </returns> protected override bool Initialize(IMMSessionManager extension, int nodeId) { if (_Session != null && _Session.get_ID() == nodeId) { return(true); } bool ro = false; _Session = extension.GetSession(ref nodeId, ref ro); return(_Session != null); }
/// <summary> /// Initializes a new instance of the <see cref="Session" /> class. /// </summary> /// <param name="pxApp">The process framework application reference.</param> /// <param name="session">The session.</param> public Session(IMMPxApplication pxApp, IMMSession session) : base(pxApp, NodeTypeName, session.get_ID()) { _Session = session; }