Skip to content

Tutorial 04 01 Implementing Traditional Bridge

Steve Ives edited this page May 20, 2020 · 35 revisions

Harmony Core Logo

Tutorial 4: Implementing Traditional Bridge


IMPORTANT: THIS TUTORIAL IS AN INCOMPLETE WORK-IN-PROGRESS. PLEASE DO NOT ATTEMPT TO FOLLOW THIS TUTORIAL UNTIL THIS BANNER IS REMOVED!


Traditional Bridge enables you to expose traditional Synergy external routines (subroutines and functions) via web service endpoints that are part of a Harmony Core service.

If you used the harmonydemo solution template to create a fully-configured demo solution, that solution will already contain a configured and working TraditionalBridge example. In this case, you won't be able to follow this tutorial, though you could still read through it as a way of understanding the code that you already have in your solution.

But if you used the harmonycore solution template to create your Harmony Core solution, your solution will not contain any Traditional Bridge components, and this tutorial will walk you through adding a sample Traditional Bridge environment to the solution.

Traditional Bridge Components

Traditional Bridge is comprised of several component parts:

  • Traditional Synergy library code

    • This code is primarily concerned with dealing with the sending and receiving of messages via the Dynamic Call Protocol, dealing with the serialization and deserialization of JSON data, and providing you with useful helper methods to allow you to receive and return parameters and return values on the traditional Synergy side.
    • You must initially obtain this code from GitHub when you first introduce Traditional Bridge into your environment.
    • https://github.com/Synergex/HarmonyCore/tree/master/TraditionalBridge
    • Once you have the code you can use the Harmony Core Project Upgrade Tool to help you ensure that you have the correct version of the code to match your Harmony Core version, and to keep the code up to date.
  • .NET Core Library code

    • This code is also primarily concerned with dealing with the sending and receiving of messages via the Dynamic Call Protocol, dealing with the serialization and deserialization of JSON data, and providing you with useful helper methods to allow you to receive and return parameters and return values on the .NET Core side.
    • This code is built into the binary Harmony Core code that you receive from NuGet.
  • CodeGen templates

Implementing Traditional Bridge

There are two ways to implement Traditional Bridge, and depending on your requirements, you may need to use one, or the other, or both. These two ways are:

This tutorial follows the manual implementation method, and the xfServerPlus Migration method will be covered by an alternate tutorial.


Next topic: Add Traditional Bridge Project


Clone this wiki locally