This file contains 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 Microsoft.Diagnostics.Tracing.Parsers; | |
using Microsoft.Diagnostics.Tracing.Session; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Diagnostics.Runtime; |
This file contains 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
static async Task Main(string[] args) | |
{ | |
var host = "http://localhost:57703/"; | |
var sync = new Uri(host + "sync"); | |
var async = new Uri(host + "async"); | |
List<Task<WebResponse>> tasks = new List<Task<WebResponse>>(); | |
for (int i = 0; i < 1000; i++) | |
{ |
This file contains 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 class Program | |
{ | |
private static Thread one; | |
private static Thread two; | |
private static Thread three; | |
private static HybridDictionary events; | |
static void Main(string[] args) | |
{ |
This file contains 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 class Context : DbContext | |
{ | |
public DbSet<EntOne> Ones { get; set; } | |
public DbSet<EntTwo> Twos { get; set; } | |
public Context(DbContextOptions<Context> options) | |
: base(options) | |
{ | |
} |