PtyArgs.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System.Diagnostics.Contracts;
  2. namespace FxSsh.Services
  3. {
  4. public class PtyArgs
  5. {
  6. public PtyArgs(SessionChannel channel, string terminal, uint heightPx, uint heightRows, uint widthPx, uint widthChars, string modes, UserauthArgs userauthArgs)
  7. {
  8. Contract.Requires(channel != null);
  9. Contract.Requires(terminal != null);
  10. Contract.Requires(modes != null);
  11. Contract.Requires(userauthArgs != null);
  12. Channel = channel;
  13. Terminal = terminal;
  14. HeightPx = heightPx;
  15. HeightRows = heightRows;
  16. WidthPx = widthPx;
  17. WidthChars = widthChars;
  18. Modes = modes;
  19. AttachedUserauthArgs = userauthArgs;
  20. }
  21. public SessionChannel Channel { get; private set; }
  22. public string Terminal { get; private set; }
  23. public uint HeightPx { get; private set; }
  24. public uint HeightRows { get; private set; }
  25. public uint WidthPx { get; private set; }
  26. public uint WidthChars { get; private set; }
  27. public string Modes { get; private set; }
  28. public UserauthArgs AttachedUserauthArgs { get; private set; }
  29. }
  30. }