Boost.GraphQL.SecurityMutations.StartAuthServerAsync C# (CSharp) Метод

StartAuthServerAsync() публичный Метод

public StartAuthServerAsync ( IAuthWebServer authWebServer, StartAuthServerInput input, CancellationToken cancellationToken ) : Task
authWebServer IAuthWebServer
input StartAuthServerInput
cancellationToken CancellationToken
Результат Task
        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();
        }