Welcome to a comprehensive example of markdown in action.
This document demonstrates all the main features.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void CompletePartialElements(MarkdownDocument document) | |
| { | |
| var lastChild = document.LastChild; | |
| while (lastChild is ContainerBlock containerBlock) | |
| { | |
| lastChild = containerBlock.LastChild; | |
| } | |
| if (lastChild is not LeafBlock leafBlock) | |
| { |
ASPIRE_ALLOW_UNSECURED_TRANSPORT
- Description: Allows communication with the app host without https.
ASPNETCORE_URLS(dashboard address) andDOTNET_RESOURCE_SERVICE_ENDPOINT_URL(app host resource service address) must be secured with HTTPS unless true. - Default: false
DOTNET_RESOURCE_SERVICE_ENDPOINT_URL
- Description: Configures the address of the resource service hosted by the app host. Automatically generated with launchSettings.json to have a random port on localhost. For example,
https://localhost:17037.
// Need to support adding multiple callbacks to support adding metrics from multiple places:
// 1. Creating HttpRequestMessage
// 2. During HTTP request pipeline in delegating handlers
// 3. In diaganostic event callbacks
public static class HttpOptionsExtensions
{
public static void AddCustomMetricsTagsCallback(
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Diagnostics; | |
| using System.Net; | |
| var stopwatch = Stopwatch.StartNew(); | |
| var endCallback = () => Console.WriteLine($"{stopwatch.ElapsedTicks} - Response ended"); | |
| var httpClient = new HttpMessageInvoker(new DetectEndRequestHandler(new SocketsHttpHandler(), endCallback)); | |
| Console.WriteLine($"{stopwatch.ElapsedTicks} - Send request"); | |
| var response = await httpClient.SendAsync(new HttpRequestMessage(HttpMethod.Get, "https://www.google.com"), CancellationToken.None); | |
| Console.WriteLine($"{stopwatch.ElapsedTicks} - Response headers received"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BenchmarkDotNet=v0.11.4, OS=Windows 10.0.18363 | |
| AMD Ryzen 7 1700, 1 CPU, 16 logical and 8 physical cores | |
| .NET Core SDK=3.1.400-preview-015151 | |
| [Host] : .NET Core 2.1.17 (CoreCLR 4.6.28619.01, CoreFX 4.6.28619.01), 64bit RyuJIT | |
| DefaultJob : .NET Core 2.1.17 (CoreCLR 4.6.28619.01, CoreFX 4.6.28619.01), 64bit RyuJIT | |
| Before: | |
| | Method | messageCount | Mean | Error | StdDev | Gen 0/1k Op | Gen 1/1k Op | Gen 2/1k Op | Allocated Memory/Op | | |
| |--------------------------------------------------------------------- |------------- |--------------:|--------------:|--------------:|------------:|------------:|------------:|--------------------:| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Jobs; | |
| using BenchmarkDotNet.Running; | |
| using System; | |
| using System.Numerics; | |
| using System.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| static class Program |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #region Copyright notice and license | |
| // Copyright 2019 The gRPC Authors | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore.Routing; | |
| namespace MvcSandbox | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFrameworks>net461;netcoreapp2.1</TargetFrameworks> | |
| </PropertyGroup> | |
| </Project> |
NewerOlder