public async Task CancelOperationAsync() { // Snippet: CancelOperationAsync(string,CallSettings) // Additional: CancelOperationAsync(string,CancellationToken) // Create client OperationsClient operationsClient = OperationsClient.Create(); // Initialize request argument(s) string formattedName = OperationsClient.FormatOperationPathName("[OPERATION_PATH]"); // Make the request await operationsClient.CancelOperationAsync(formattedName); // End snippet }
/// <summary>Snippet for CancelOperationAsync</summary> public async Task CancelOperationAsync() { // Snippet: CancelOperationAsync(string,CallSettings) // Additional: CancelOperationAsync(string,CancellationToken) // Create client OperationsClient operationsClient = await OperationsClient.CreateAsync(); // Initialize request argument(s) string name = ""; // Make the request await operationsClient.CancelOperationAsync(name); // End snippet }
/// <summary>Snippet for CancelOperationAsync</summary> public async Task CancelOperationAsync_RequestObject() { // Snippet: CancelOperationAsync(CancelOperationRequest,CallSettings) // Create client OperationsClient operationsClient = await OperationsClient.CreateAsync(); // Initialize request argument(s) CancelOperationRequest request = new CancelOperationRequest { Name = "", }; // Make the request await operationsClient.CancelOperationAsync(request); // End snippet }