コード例 #1
0
        public override Task <GetTopicSubscriptionsEnvelope> GetTopicSubscriptions(Empty request, ServerCallContext context)
        {
            var topicSubscriptionsEnvelope = new GetTopicSubscriptionsEnvelope();

            topicSubscriptionsEnvelope.Topics.Add("Storage.Reduce");
            return(Task.FromResult(topicSubscriptionsEnvelope));
        }
コード例 #2
0
        public override async Task <GetTopicSubscriptionsEnvelope> GetTopicSubscriptions(Empty request,
                                                                                         ServerCallContext context)
        {
            var subscription = new GetTopicSubscriptionsEnvelope();

            subscription.Topics.Add("test topic");

            return(subscription);
        }