Interface IInterop
Provides the basic access point for the OpenFin interop APIs
Namespace: OpenFin.Net.Adapter.Interop
Assembly: OpenFin.Net.Adapter.dll
Syntax
public interface IInterop : IAPIService
Examples
var runtime = new RuntimeFactory()
.GetRuntimeInstance(new RuntimeOptions
{
Version = "stable",
UUID = "UUID_STRING",
LicenseKey = "LICENSE_KEY"
});
await runtime.ConnectAsync();
var interop = runtime.GetService<IInterop>();
var interopClient = await interop.ConnectAsync("broker-name");
await interopClient.ConnectAsync();
await interopClient.FireIntentAsync( myIntent );
Methods
ConnectAsync(String)
Creates a new Interop Client and connects to the given Interop Broker.
Declaration
Task<IInteropClient> ConnectAsync(string brokerName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | brokerName | The name of the Interop Broker that the client will connect to. |
Returns
| Type | Description |
|---|---|
| Task<IInteropClient> | A Task resolving to a IInteropClient |
CreateAsync(String, IInteropBrokerProvider)
Creates a new Interop Broker using specified Interop Broker Provider.
Declaration
Task<IInteropBroker> CreateAsync(string brokerName, IInteropBrokerProvider provider = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | brokerName | The name of the Interop Broker. |
| IInteropBrokerProvider | provider | The Interop Broker Provider, null to use the default provider |
Returns
| Type | Description |
|---|---|
| Task<IInteropBroker> | A Task resolving to a IInteropBroker |