コード例 #1
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetAsync()
        {
            // Snippet: GetAsync(string, string, CallSettings)
            // Additional: GetAsync(string, string, CancellationToken)
            // Create client
            TargetGrpcProxiesClient targetGrpcProxiesClient = await TargetGrpcProxiesClient.CreateAsync();

            // Initialize request argument(s)
            string project         = "";
            string targetGrpcProxy = "";
            // Make the request
            TargetGrpcProxy response = await targetGrpcProxiesClient.GetAsync(project, targetGrpcProxy);

            // End snippet
        }
コード例 #2
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetTargetGrpcProxyRequest, CallSettings)
            // Additional: GetAsync(GetTargetGrpcProxyRequest, CancellationToken)
            // Create client
            TargetGrpcProxiesClient targetGrpcProxiesClient = await TargetGrpcProxiesClient.CreateAsync();

            // Initialize request argument(s)
            GetTargetGrpcProxyRequest request = new GetTargetGrpcProxyRequest
            {
                TargetGrpcProxy = "",
                Project         = "",
            };
            // Make the request
            TargetGrpcProxy response = await targetGrpcProxiesClient.GetAsync(request);

            // End snippet
        }