static void Main(string[] args) { LogStartup.Start(); Foo(0, null); Foo(100, new Uri("http://www.baidu.com")); Console.WriteLine("Hello World!"); Thread thd = new Thread(new ParameterizedThreadStart((obj) => { while (true) { Foo(0, null); Thread.Sleep(1000); } })); //thd.Start(Foo(100, null)); ExpTest1(); Console.ReadLine(); }
public static void AddCocohub(this IServiceCollection services) { services.TryAddSingleton <IHttpContextAccessor, HttpContextAccessor>(); LogStartup.Start(); }