Desktop system API extension
This extension adds a variety of the desktop system APIs to the adapter. These include LaunchManifestAsync and GetAllApplications.
To use the extension:
Reference the OpenFin.Net.Adapter.Extensions.DesktopSystem package from NuGet.
Activate the extension as part of the Runtime builder process, by adding a call to UseDesktopSystem.
IRuntime runtime = new RuntimeFactory()
.UseDesktopSystem()
.GetRuntimeInstance(new RuntimeOptions
{
Version = "stable",
UUID = "UUID_STRING",
LicenseKey = "LICENSE_KEY"
});
To access the API, query the Runtime for IDesktopSystem. For example:
var desktopSystem = runtime.GetService<IDesktopSystem>();
var apps = await desktopSystem.GetAllApplicationsAsync();