Licensing | Table of Content | Selecting FIX Version |
Engine Initialization and Shutdown |
To initialize the Engine services, the Init() method must be used. This method must be called before all other methods.
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.
The following example demonstrates the Engine's initialization and shutdown:
using FIXForge.NET.FIX; try { Engine fixEngine = Engine.Init(); // Session-related logic goes here. fixEngine.Shutdown(); } catch(Exception ex) { Console.WriteLine("Exception: {0}", ex); }
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