Inheritance: ChannelMessage
Exemplo n.º 1
0
 public void ChannelCloseMessageConstructorTest1()
 {
     uint localChannelNumber = 0; // TODO: Initialize to an appropriate value
     ChannelCloseMessage target = new ChannelCloseMessage(localChannelNumber);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Exemplo n.º 2
0
        /// <summary>
        /// Sends close channel message to the server, and marks the channel closed.
        /// </summary>
        /// <param name="message">The message to send.</param>
        private void SendMessage(ChannelCloseMessage message)
        {
            // send channel messages only while channel is open
            if (!this.IsOpen)
                return;

            this._session.SendMessage(message);

            // when channel close message is sent channel considered to be closed
            this.IsOpen = false;
        }
Exemplo n.º 3
0
 public void ChannelCloseMessageConstructorTest()
 {
     ChannelCloseMessage target = new ChannelCloseMessage();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }