Skip to content

Latest commit

 

History

History

use-channels-api

Example of Channel API communication

How to run this example

  1. Ensure that you have installed the following nuget packages:
  • OpenFin.Net.Adapter (minimum 29.2.0)
  • OpenFIn.Net.Adapter.Logs.Serilog (minimum 29.2.0)
  1. Build the solution without errors
  2. Navigate to the folder that has the executable, typically this will be in "how-to.v2\use-channels-api\bin\Debug\net6.0-windows"
  3. Run the Channels.exe twice.
  4. Click on "Connect To Runtime" in both instances.

Step-5

Verify that you get the "Connected" message in the red box at the top.

  1. In one instance click on "Channels Provider Create".

Step-6

Verify that you get a message "Provider Opened" in the red box at the top.

  1. In the second instance click on "Connect to Channel".

Step-7

Verify that you get a message "Client Connected" in the red box at the top.

  1. Click "Provider Broadcast" in the first instance (see step 6). You should see a message appear under the buttons in the second instance (see step 7).

Step-8

  1. Click "Send to Provider" in the second instance, and you should see a message appear in the first instance, under the buttons.

Step-9

  1. Please make sure that you click "Disconnect from Runtime" in both instances once you have verified that the tests are working, and prior to closing the windows.

Step-10