Skip to content

Tutorial 04 01 Implementing Traditional Bridge

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

Harmony Core Logo

Tutorial 4: Implementing Traditional Bridge

Traditional Bridge is a Harmony Core technology that allows you to execute traditional Synergy code (subroutines and functions) during the execution .NET based web service endpoints. In some cases, a traditional Synergy routine may provide all of the business logic necessary to service an entire web service endpoint, but in other cases, the traditional Synergy routine may simply provide supporting functionality, contributing towards some greater functionality.

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 that 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 made up of several 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.

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 custom implementation method, and the xfServerPlus Migration Tutorial is coming soon.

Before Getting Started

Before you start this tutorial, please ensure that you have the latest version of the Harmony Core Updgrade Tool installed.


Next topic: Add Traditional Bridge Project


Clone this wiki locally