Exemple #1
0
        /// <summary>Snippet for WaitAsync</summary>
        public async Task WaitAsync()
        {
            // Snippet: WaitAsync(string, string, CallSettings)
            // Additional: WaitAsync(string, string, CancellationToken)
            // Create client
            GlobalOperationsClient globalOperationsClient = await GlobalOperationsClient.CreateAsync();

            // Initialize request argument(s)
            string project   = "";
            string operation = "";
            // Make the request
            Operation response = await globalOperationsClient.WaitAsync(project, operation);

            // End snippet
        }
Exemple #2
0
        /// <summary>Snippet for WaitAsync</summary>
        public async Task WaitRequestObjectAsync()
        {
            // Snippet: WaitAsync(WaitGlobalOperationRequest, CallSettings)
            // Additional: WaitAsync(WaitGlobalOperationRequest, CancellationToken)
            // Create client
            GlobalOperationsClient globalOperationsClient = await GlobalOperationsClient.CreateAsync();

            // Initialize request argument(s)
            WaitGlobalOperationRequest request = new WaitGlobalOperationRequest
            {
                Operation = "",
                Project   = "",
            };
            // Make the request
            Operation response = await globalOperationsClient.WaitAsync(request);

            // End snippet
        }