MCPcopy Create free account
hub / github.com/apache/thrift / Run

Method Run

tutorial/netstd/Server/Program.cs:315–336  ·  view source on GitHub ↗
(CancellationToken cancellationToken)

Source from the content-addressed store, hash-verified

313 public class HttpServerSample
314 {
315 public void Run(CancellationToken cancellationToken)
316 {
317 var config = new ConfigurationBuilder()
318 .AddEnvironmentVariables(prefix: "ASPNETCORE_")
319 .Build();
320
321 var host = new HostBuilder().
322 ConfigureWebHost(webhostbuilder => {
323 webhostbuilder.UseConfiguration(config)
324 .UseUrls("http://localhost:9090")
325 .UseContentRoot(Directory.GetCurrentDirectory())
326 .UseStartup<Startup>()
327 .UseKestrel()
328 .ConfigureLogging((ctx, logging) => LoggingHelper.ConfigureLogging(logging))
329 ;
330 })
331 .Build();
332
333 Logger.LogTrace("test");
334 Logger.LogCritical("test");
335 host.RunAsync(cancellationToken).GetAwaiter().GetResult();
336 }
337
338 public class Startup
339 {

Callers 3

RunAsyncMethod · 0.45
doUnitFunction · 0.45
ExecuteMethod · 0.45

Calls 2

ConfigureLoggingMethod · 0.45
RunAsyncMethod · 0.45

Tested by 2

doUnitFunction · 0.36
ExecuteMethod · 0.36