AddLink() private method

private AddLink ( Link link ) : uint
link Link
return uint
Exemplo n.º 1
0
 /// <summary>
 /// Initializes the link.
 /// </summary>
 /// <param name="session">The session.</param>
 /// <param name="name">The link name.</param>
 /// <param name="onAttached">The callback to handle received attach.</param>
 protected Link(Session session, string name, OnAttached onAttached)
 {
     this.session = session;
     this.name = name;
     this.onAttached = onAttached;
     this.handle = session.AddLink(this);
     this.state = LinkState.Start;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes the link.
 /// </summary>
 /// <param name="session">The session.</param>
 /// <param name="name">The link name.</param>
 /// <param name="onAttached">The callback to handle received attach.</param>
 protected Link(Session session, string name, OnAttached onAttached)
 {
     this.session    = session;
     this.name       = name;
     this.onAttached = onAttached;
     this.handle     = session.AddLink(this);
     this.state      = LinkState.Start;
 }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes the link.
        /// </summary>
        /// <param name="session">The session.</param>
        /// <param name="name">The link name.</param>
        /// <param name="onAttached">The callback to handle received attach.</param>
        protected Link(Session session, string name, OnAttached onAttached)
        {
            if (session == null)
            {
                throw new ArgumentNullException("session");
            }

            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            this.session    = session;
            this.name       = name;
            this.onAttached = onAttached;
            this.handle     = session.AddLink(this);
            this.state      = LinkState.Start;
        }