public AuthorizeRequestService( IAuthWebServer authWebServer, IBoostCommandContext commandContext) { _authWebServer = authWebServer; _commandContext = commandContext; }
public async Task<string> StopAuthServerAsync( [Service] IAuthWebServer authWebServer, Guid id, CancellationToken cancellationToken) { await authWebServer.StopAsync(id, cancellationToken); return id.ToString("N"); }
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(); }
public IEnumerable <RunningWebServerInfo> GetRunningAuthServers( [Service] IAuthWebServer authWebServer) { return(authWebServer.GetRunningServers()); }