Exemple #1
0
        public override async Task <GetBindingsSubscriptionsEnvelope> GetBindingsSubscriptions(Empty request,
                                                                                               ServerCallContext context)
        {
            var binding = new GetBindingsSubscriptionsEnvelope();

            binding.Bindings.Add("test binding");

            return(binding);
        }
Exemple #2
0
        public override Task <GetBindingsSubscriptionsEnvelope> GetBindingsSubscriptions(Empty request, Grpc.Core.ServerCallContext context)
        {
            var envelope = new GetBindingsSubscriptionsEnvelope();

            this.workflows.ForEach(w =>
            {
                envelope.Bindings.Add(w.Name);
            });
            return(Task.FromResult(envelope));
        }