/// <summary>Snippet for DeprecatedMethodAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task DeprecatedMethodRequestObjectAsync() { // Create client DeprecatedClient deprecatedClient = await DeprecatedClient.CreateAsync(); // Initialize request argument(s) Request request = new Request { }; // Make the request #pragma warning disable CS0612 Response response = await deprecatedClient.DeprecatedMethodAsync(request); #pragma warning restore CS0612 }
/// <summary>Snippet for DeprecatedMethodAsync</summary> public async Task DeprecatedMethodRequestObjectAsync() { // Snippet: DeprecatedMethodAsync(Request, CallSettings) // Additional: DeprecatedMethodAsync(Request, CancellationToken) // Create client DeprecatedClient deprecatedClient = await DeprecatedClient.CreateAsync(); // Initialize request argument(s) Request request = new Request { }; // Make the request Response response = await deprecatedClient.DeprecatedMethodAsync(request); // End snippet }