Search Results for

    Show / Hide Table of Contents

    Connecting to the 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 = "your-uuid",
                            LicenseKey = "your-license-key"
                        });
    

    The version can be specified as "stable" which will cause the RVM to download and start the latest stable version of the OpenFin runtime, or more likely, will be a specific version that your organisation is currently using. For example, "27.104.71.21".

    The LicenseKey should be obtained from OpenFin at *support@openfin.co* if you do not already have one.

    Once you have an instance of a runtime, you will need the adapter to 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 Desktop.

    In This Article
    Back to top Copyright OpenFin