Exemplo n.º 1
0
        override public async Task <ClientInfo> NewClient(NewClientRequest request, ServerCallContext context)
        {
            int id = await _locker.LockAsync(async() =>
                                             await _rssManager.AddClient(request.Name, request.Email));

            LogInformationSafe("New client added " + id);
            return(new ClientInfo()
            {
                ClientId = id
            });
        }