public AuthorizeRequestService(
     IAuthWebServer authWebServer,
     IBoostCommandContext commandContext)
 {
     _authWebServer  = authWebServer;
     _commandContext = commandContext;
 }
Пример #2
0
        public async Task<string> StopAuthServerAsync(
            [Service] IAuthWebServer authWebServer,
            Guid id,
            CancellationToken cancellationToken)
        {
            await authWebServer.StopAsync(id, cancellationToken);

            return id.ToString("N");
        }
Пример #3
0
        public async Task<string> StartAuthServerAsync(
            [Service] IAuthWebServer authWebServer,
            StartAuthServerInput input,
            CancellationToken cancellationToken)
        {
            RunningWebServerInfo? server = await authWebServer.StartAsync(
                new StartWebServerOptions(Guid.NewGuid(), input.Port.GetValueOrDefault(3010)),
                cancellationToken);

            return server.Id.ToString();
        }
Пример #4
0
 public IEnumerable <RunningWebServerInfo> GetRunningAuthServers(
     [Service] IAuthWebServer authWebServer)
 {
     return(authWebServer.GetRunningServers());
 }