forwardLicensing   Table of ContentSelecting FIX Versionforward
Engine Initialization and Shutdown
Initializing the Engine

To initialize the Engine services, the Init() method must be used. This method must be called before all other methods.

Shutting down the Engine

To shutdown the Engine, the Shutdown() method must be used. No other methods or property of any Engine's class or structure should be called or accessed after shutdown.

Example

The following example demonstrates the Engine's initialization and shutdown:

C#
using FIXForge.NET.FIX;

try
{
  Engine fixEngine = Engine.Init();

  // Session-related logic goes here.

  fixEngine.Shutdown();
}
catch(Exception ex)
{
  Console.WriteLine("Exception: {0}", ex);
}
VB
Imports  FIXForge.NET.FIX

Try
  Dim fixEngine As Engine = Engine.Init()

  ' Session-related logic goes here.

  fixEngine.Shutdown()
Catch ex As Exception
  Console.WriteLine("Exception: {0}", ex)
End Try