SessionOpenMessage.cs 391 B

123456789101112131415
  1. using System;
  2. namespace FxSsh.Messages.Connection
  3. {
  4. public class SessionOpenMessage : ChannelOpenMessage
  5. {
  6. protected override void OnLoad(SshDataWorker reader)
  7. {
  8. base.OnLoad(reader);
  9. if (ChannelType != "session")
  10. throw new ArgumentException(string.Format("Channel type {0} is not valid.", ChannelType));
  11. }
  12. }
  13. }