示例#1
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetAsync()
        {
            // Snippet: GetAsync(string, string, CallSettings)
            // Additional: GetAsync(string, string, CancellationToken)
            // Create client
            TargetTcpProxiesClient targetTcpProxiesClient = await TargetTcpProxiesClient.CreateAsync();

            // Initialize request argument(s)
            string project        = "";
            string targetTcpProxy = "";
            // Make the request
            TargetTcpProxy response = await targetTcpProxiesClient.GetAsync(project, targetTcpProxy);

            // End snippet
        }
示例#2
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetTargetTcpProxyRequest, CallSettings)
            // Additional: GetAsync(GetTargetTcpProxyRequest, CancellationToken)
            // Create client
            TargetTcpProxiesClient targetTcpProxiesClient = await TargetTcpProxiesClient.CreateAsync();

            // Initialize request argument(s)
            GetTargetTcpProxyRequest request = new GetTargetTcpProxyRequest
            {
                Project        = "",
                TargetTcpProxy = "",
            };
            // Make the request
            TargetTcpProxy response = await targetTcpProxiesClient.GetAsync(request);

            // End snippet
        }