\r\n

51Degrees Device Detection .NET  4.4

Device detection services for 51Degrees Pipeline

FiftyOne.DeviceDetection.Examples.OnPremise.GettingStartedWeb.Program Class Reference

Static Public Member Functions

static void  Main (string[] args)
static Task  Run (string[] args, CancellationToken stopToken=default)
Used by unit tests to run the example in an almost identical manner to a developer using the example. More...
static IHostBuilder  CreateHostBuilder (IDictionary< string, string > overrides, string[] args)

Member Function Documentation

◆ Run()

static Task FiftyOne.DeviceDetection.Examples.OnPremise.GettingStartedWeb.Program.Run ( string []   args,
CancellationToken   stopToken = default  
)
static

Used by unit tests to run the example in an almost identical manner to a developer using the example.

Returns the task that the web server is running in so that the test can trigger the cancellation token and then wait for the server to shutdown before finishing.

Parameters
args -
stopToken -
Returns