Connect to the OpenFin Runtime
Once you have referenced the OpenFin.Net.Adapter package from NuGet, you can add code to connect to an OpenFin Runtime.
All Runtime instances are retrieved from a new instance of RuntimeFactory, which you are responsible for creating.
For example:
var runtime = new RuntimeFactory()
.GetRuntimeInstance(new RuntimeOptions
{
Version = "stable",
UUID = "UUID_STRING",
LicenseKey = "LICENSE_KEY"
});
You can specify the version as "stable," which causes the RVM to download and start the latest stable version of the OpenFin Runtime; more likely, you can reference a specific version that your organization is currently using. For example, "27.104.71.21".
If you do not already have a LicenseKey value, contact OpenFin at support@openfin.co to obtain one.
Once you have an instance of a Runtime, the adapter must actually create a connection to it:
await runtime.ConnectAsync();
From this point, you are now able to leverage the capabilities of the adapter to communicate with other running parts of the OpenFin environment.