예제 #1
0
        /// <summary>Snippet for GetDiagnosticsAsync</summary>
        public async Task GetDiagnosticsAsync()
        {
            // Snippet: GetDiagnosticsAsync(string, string, CallSettings)
            // Additional: GetDiagnosticsAsync(string, string, CancellationToken)
            // Create client
            InterconnectsClient interconnectsClient = await InterconnectsClient.CreateAsync();

            // Initialize request argument(s)
            string project      = "";
            string interconnect = "";
            // Make the request
            InterconnectsGetDiagnosticsResponse response = await interconnectsClient.GetDiagnosticsAsync(project, interconnect);

            // End snippet
        }
예제 #2
0
        /// <summary>Snippet for GetDiagnosticsAsync</summary>
        public async Task GetDiagnosticsRequestObjectAsync()
        {
            // Snippet: GetDiagnosticsAsync(GetDiagnosticsInterconnectRequest, CallSettings)
            // Additional: GetDiagnosticsAsync(GetDiagnosticsInterconnectRequest, CancellationToken)
            // Create client
            InterconnectsClient interconnectsClient = await InterconnectsClient.CreateAsync();

            // Initialize request argument(s)
            GetDiagnosticsInterconnectRequest request = new GetDiagnosticsInterconnectRequest
            {
                Interconnect = "",
                Project      = "",
            };
            // Make the request
            InterconnectsGetDiagnosticsResponse response = await interconnectsClient.GetDiagnosticsAsync(request);

            // End snippet
        }