示例#1
0
        /// <summary>Snippet for PublishChannelConnectionEventsAsync</summary>
        public async Task PublishChannelConnectionEventsRequestObjectAsync()
        {
            // Snippet: PublishChannelConnectionEventsAsync(PublishChannelConnectionEventsRequest, CallSettings)
            // Additional: PublishChannelConnectionEventsAsync(PublishChannelConnectionEventsRequest, CancellationToken)
            // Create client
            PublisherClient publisherClient = await PublisherClient.CreateAsync();

            // Initialize request argument(s)
            PublishChannelConnectionEventsRequest request = new PublishChannelConnectionEventsRequest
            {
                ChannelConnection = "",
                Events            = { new Any(), },
            };
            // Make the request
            PublishChannelConnectionEventsResponse response = await publisherClient.PublishChannelConnectionEventsAsync(request);

            // End snippet
        }