コード例 #1
0
            protected override async Task When()
            {
                var resp = await _persistentSubscriptionsClient.GetInfoAsync(new GetInfoReq {
                    Options = new GetInfoReq.Types.Options {
                        GroupName = _groupName,
                        All       = new Empty()
                    }
                }, GetCallOptions(AdminCredentials));

                _actualSubscriptionInfo = resp.SubscriptionInfo;
            }
コード例 #2
0
            protected override async Task When()
            {
                var resp = await _persistentSubscriptionsClient.GetInfoAsync(new GetInfoReq {
                    Options = new GetInfoReq.Types.Options {
                        GroupName        = _groupName,
                        StreamIdentifier = new StreamIdentifier {
                            StreamName = ByteString.CopyFromUtf8(_streamName)
                        }
                    }
                }, GetCallOptions(AdminCredentials));

                _actualSubscriptionInfo = resp.SubscriptionInfo;
            }