Filter:C# VB.NET C++ (.NET) Java PHP C++ Delphi / Pascal (VCL) C++Builder (VCL)
Contains a reference to the server-side engine
Public Property Engine As Rethync.Server.BaseServerEngine
[Delphi / Pascal (VCL)]
property Engine : TBaseServerEngine;
This property contains a reference to the instance of server-side engine class which will handle requests from the client.
When OnNewConnection event of BaseServerTransport class is fired, new connection object is passed. Two cases are possible: either Engine property of this new connection object is already set (this happens when the code is part of Rethync Server software plugin) or it is not set (in standalone use cases). If Engine property is not initialized, application code must create or in other way provide an instance of the engine object and put it to Engine property. If the Engine property is already assigned, the engine can not be replaced and any re-assignment of the property will not work.
Descendant transports must use this property to dispatch requests to the server-side code.
Got questions or comments about this topic? Tell us about them.