Skip to main content

Application context

There are some NetDaemon runtime specific information for each instanced application that can be retreived using the IApplicationContext interface.

[NetDaemonApp]
public class MyApp
{
public MyApp(IApplicationContext appCtx)
{
// Get the unique application id for this instance
var myAppId = appCtx.Id;
}
}