private TestServer(Action <IApplicationBuilder> appBuilder, ILoggerFactory loggerFactory) { _hostfxrMainFn = Main; _appBuilder = appBuilder; _loggerFactory = loggerFactory; HttpClient = new HttpClient(new LoggingHandler(new SocketsHttpHandler(), _loggerFactory.CreateLogger <TestServer>())) { BaseAddress = BaseUri }; }
private TestServer(Action <IApplicationBuilder> appBuilder, ILoggerFactory loggerFactory) { _hostfxrMainFn = Main; _appBuilder = appBuilder; _loggerFactory = loggerFactory; }
private static extern int set_main_handler(hostfxr_main_fn main);
private static partial int set_main_handler(hostfxr_main_fn main);