/// <summary>Snippet for GetAsync</summary> public async Task GetAsync() { // Snippet: GetAsync(string, string, CallSettings) // Additional: GetAsync(string, string, CancellationToken) // Create client HealthChecksClient healthChecksClient = await HealthChecksClient.CreateAsync(); // Initialize request argument(s) string project = ""; string healthCheck = ""; // Make the request HealthCheck response = await healthChecksClient.GetAsync(project, healthCheck); // End snippet }
/// <summary>Snippet for GetAsync</summary> public async Task GetRequestObjectAsync() { // Snippet: GetAsync(GetHealthCheckRequest, CallSettings) // Additional: GetAsync(GetHealthCheckRequest, CancellationToken) // Create client HealthChecksClient healthChecksClient = await HealthChecksClient.CreateAsync(); // Initialize request argument(s) GetHealthCheckRequest request = new GetHealthCheckRequest { Project = "", HealthCheck = "", }; // Make the request HealthCheck response = await healthChecksClient.GetAsync(request); // End snippet }