IInteropBridge.InitializeAsync method
Initializes the interop bridge without launching the Connector UI process. This method prepares the Connector SDK for communication with the Connector UI process by starting the listening server. This method must be called before any other operations on the interop bridge.
public Task InitializeAsync()
Return Value
A task that completes when initialization has finished successfully.
Exceptions
| exception | condition |
|---|---|
| PortInUseException | Thrown when the listening endpoint cannot bind because the port is already in use. |
| InvalidOperationException | Thrown when this method is called more than once, after the interop bridge has already been initialized. |
| IOException | Thrown when the Connector UI configuration file cannot be created or written. |
Remarks
This asynchronous method does not block the calling thread. It is essential to await the returned task to completion before invoking other methods on the interop bridge to ensure that initialization has been fully completed.
See Also
- interface IInteropBridge
- namespace Autodesk.DataExchange.UI.Core.Interfaces