示例#1
0
        public Task ListAsync(WhisperList message, CancellationToken cancellationToken = default)
        {
            var request = Builder.BuildRequest(message, CreateSession());
            var call    = Client.WhisperListAsync(request, CreateOptions(cancellationToken));

            return(call.ResponseAsync);
        }
        public WhisperListRequest BuildRequest(WhisperList list, Proto.Session session)
        {
            var request = new WhisperListRequest
            {
                Meta    = BuildMeta(list.Config),
                Session = session
            };

            BuildInputs(request.Elements, list.Elements);
            return(request);
        }