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 Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.FileProviders; | |
| namespace cfgtest | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |
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.Diagnostics; | |
| namespace activitysample | |
| { | |
| class Program | |
| { | |
| private static readonly ActivitySource _ActivitySource = new ActivitySource("actsrc1"); | |
| static void Main(string[] args) |
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.Diagnostics; | |
| using Microsoft.Extensions.Logging; | |
| using Microsoft.Extensions.Logging.Console; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Hosting; | |
| using System.Threading.Tasks; | |
| using System.Threading; | |
| using System.Collections.Generic; |
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.Threading.Tasks; | |
| using Microsoft.Diagnostics.Tracing; | |
| using Microsoft.Diagnostics.NETCore.Client; | |
| using System.Diagnostics.Tracing; | |
| namespace eventpipeerrortest | |
| { | |
| 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| using System.Text; | |
| using Microsoft.Diagnostics.NETCore.Client; | |
| using System.Diagnostics.Tracing; | |
| using Microsoft.Diagnostics.Tracing.Parsers; | |
| using Microsoft.Diagnostics.Tracing; |
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.Diagnostics; | |
| using System.Collections.Generic; | |
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Running; | |
| namespace diagnosticbench | |
| { | |
| class ActivityTest | |
| { |
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.Net.Http; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using Org.BouncyCastle.Bcpg.OpenPgp; | |
| using Org.BouncyCastle.Crypto.Parameters; | |
| using Org.BouncyCastle.Crypto.Utilities; | |
| using Org.BouncyCastle.Crypto.Generators; | |
| using Org.BouncyCastle.Crypto; | |
| using Org.BouncyCastle.Security; |
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; | |
| public interface IA | |
| { | |
| public void X() | |
| { | |
| Console.WriteLine("Hello world"); | |
| } | |
| } | |
| public class C : IA { | |
| public void M() { |
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.Net.Http; | |
| using System.Security.Cryptography.X509Certificates; | |
| using System.Threading.Tasks; | |
| using System.Net.Security; | |
| namespace chkcert | |
| { | |
| 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
| $basekey = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, [Microsoft.Win32.RegistryView]::Registry32) | |
| $key = $basekey.OpenSubKey("SOFTWARE\Microsoft\Windows Kits\Installed Roots") | |
| if($key -ne $null) | |
| { | |
| # windows sdk 10 | |
| $wkit10root = $key.GetValue("KitsRoot10") | |
| foreach($kitsver in $key.GetSubKeyNames()) | |
| { | |
| $wkit10bin = Join-Path $wkit10root "bin" | Join-Path -ChildPath $kitsver | |
| $wkit10result = Test-Path $(Join-Path $wkit81bin "signtool.exe") |