\r\n

51Degrees Device Detection .NET  4.4

Device detection services for 51Degrees Pipeline

FiftyOne.DeviceDetection.Examples.Cloud.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 (IConfiguration baseConfig, IDictionary< string, string > overrides, string[] args)

Member Function Documentation

◆ Run()

static Task FiftyOne.DeviceDetection.Examples.Cloud.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