Represents type specific information for channel request.
Inheritance: SshData
 /// <summary>
 /// Called when channel request received.
 /// </summary>
 /// <param name="info">Channel request information.</param>
 protected virtual void OnRequest(RequestInfo info)
 {
     if (this.RequestReceived != null)
     {
         this.RequestReceived(this, new ChannelRequestEventArgs(info));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Called when channel request received.
 /// </summary>
 /// <param name="info">Channel request information.</param>
 protected virtual void OnRequest(RequestInfo info)
 {
     var requestReceived = RequestReceived;
     if (requestReceived != null)
         requestReceived(this, new ChannelRequestEventArgs(info));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelRequestEventArgs"/> class.
 /// </summary>
 /// <param name="info">Request information.</param>
 public ChannelRequestEventArgs(RequestInfo info)
 {
     Info = info;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelRequestMessage"/> class.
 /// </summary>
 /// <param name="localChannelName">Name of the local channel.</param>
 /// <param name="info">The info.</param>
 public ChannelRequestMessage(uint localChannelName, RequestInfo info)
 {
     this.LocalChannelNumber = localChannelName;
     this.RequestName = info.RequestName;
     this.RequestData = info.GetBytes();
 }
Exemplo n.º 5
0
        protected override void OnRequest(RequestInfo info)
        {
            base.OnRequest(info);

            if (OnRequestException != null)
                throw OnRequestException;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelRequestMessage"/> class.
 /// </summary>
 /// <param name="localChannelName">Name of the local channel.</param>
 /// <param name="info">The info.</param>
 public ChannelRequestMessage(uint localChannelName, RequestInfo info)
 {
     this.LocalChannelNumber = localChannelName;
     this.RequestName        = info.RequestName;
     this.RequestData        = info.GetBytes();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelRequestMessage"/> class.
 /// </summary>
 /// <param name="localChannelName">Name of the local channel.</param>
 /// <param name="info">The info.</param>
 public ChannelRequestMessage(uint localChannelName, RequestInfo info)
 {
     this.LocalChannelNumber = localChannelName;
     this.Info = info;
 }