Desktop System API Extension
This extension adds a variety of the desktop system api’s to the adapter. These include LaunchManifestAsync and GetAllApplications.
To use the extension you will firstly need to reference the OpenFin.Net.Adapter.Extensions.DesktopSystem package from NuGet.
You will then need to activate the extension as part of the runtime builder process by adding the UseDesktopSystem call.
IRuntime runtime = new RuntimeFactory()
.UseDesktopSystem()
.GetRuntimeInstance(new RuntimeOptions
{
Version = "stable",
UUID = "your-uuid",
LicenseKey = "your-license-key"
});
To access the api you should query the runtime for IDesktopSystem.
For example
var desktopSystem = runtime.GetService<IDesktopSystem>();
var apps = await desktopSystem.GetAllApplicationsAsync();