/// <summary>
 /// Initializes a new instance of the <see cref="WebSshHostedService"/> class.
 /// </summary>
 public WebSshHostedService(
     IHostApplicationLifetime appLifetime,
     ServerShellPoll sshPoll)
 {
     _appLifetime = appLifetime;
     _sshPoll     = sshPoll;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetUserSessionsQueryHandler"/> class.
 /// </summary>
 public GetUserSessionsQueryHandler(
     IHttpContextAccessor accessor,
     ServerShellPoll sshPoll,
     IOwnSystemLocalizer <SshTerminalConstants> localizer)
 {
     _accessor  = accessor;
     _sshPoll   = sshPoll;
     _localizer = localizer;
 }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 public DisconnectTerminalCommandHandler(
     IHttpContextAccessor accessor,
     ServerShellPoll sshPoll,
     IOwnSystemLocalizer <SshTerminalConstants> localizer)
 {
     _accessor  = accessor;
     _sshPoll   = sshPoll;
     _localizer = localizer;
 }
Example #4
0
 public ExecuteShellCommandHandler(
     IHttpContextAccessor httpContextAccessor,
     ServerShellPoll sshPoll,
     IOwnSystemLocalizer <SshTerminalConstants> localizer)
 {
     _httpContextAccessor = httpContextAccessor;
     _sshPoll             = sshPoll;
     _localizer           = localizer;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConnectToSourceCommandHandler"/> class.
 /// </summary>
 public ConnectToSourceCommandHandler(
     IHttpContextAccessor httpContextAccessor,
     ServerShellPoll shellPoll,
     IOwnSystemLocalizer <SshTerminalConstants> localizer)
 {
     _httpContextAccessor = httpContextAccessor;
     _shellPoll           = shellPoll;
     _localizer           = localizer;
 }