Пример #1
0
        public void SaveCurfew(Curfew[] values, string login)
        {
            var req = new SaveCurfewRequest {
                Login = login
            };

            req.Values.AddRange(values);

            client.SaveCurfew(req);
        }
Пример #2
0
        public override async Task <Google.Protobuf.WellKnownTypes.Empty> SaveCurfew(SaveCurfewRequest request, ServerCallContext context)
        {
            await SaveCurfewAsync(request.Values.ToArray(), request.Login);

            return(new Google.Protobuf.WellKnownTypes.Empty());
        }