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

            // Initialize request argument(s)
            string     debuggeeId    = "";
            Breakpoint breakpoint    = new Breakpoint();
            string     clientVersion = "";
            // Make the request
            SetBreakpointResponse response = await debugger2Client.SetBreakpointAsync(debuggeeId, breakpoint, clientVersion);

            // End snippet
        }
        /// <summary>Snippet for SetBreakpointAsync</summary>
        public async Task SetBreakpointAsync_RequestObject()
        {
            // Snippet: SetBreakpointAsync(SetBreakpointRequest,CallSettings)
            // Create client
            Debugger2Client debugger2Client = await Debugger2Client.CreateAsync();

            // Initialize request argument(s)
            SetBreakpointRequest request = new SetBreakpointRequest
            {
                DebuggeeId    = "",
                Breakpoint    = new Breakpoint(),
                ClientVersion = "",
            };
            // Make the request
            SetBreakpointResponse response = await debugger2Client.SetBreakpointAsync(request);

            // End snippet
        }