Esempio n. 1
0
        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
            };
        }
Esempio n. 2
0
 private TestServer(Action <IApplicationBuilder> appBuilder, ILoggerFactory loggerFactory)
 {
     _hostfxrMainFn = Main;
     _appBuilder    = appBuilder;
     _loggerFactory = loggerFactory;
 }
Esempio n. 3
0
 private static extern int set_main_handler(hostfxr_main_fn main);
Esempio n. 4
0
 private static partial int set_main_handler(hostfxr_main_fn main);