This class implements the IDeterministicSessionContext interface inside the simulation project. It's used on the custom server to access Quantum simulation code like the resource manager and command serialization. A static resource manager is created during Init() that is shared between multiple server simulation instances.
More...
Inherits IDeterministicSessionContext.
|
void | Init (DeterministicSessionContextInitArguments args) |
| Initialized the server simulation. It initializes static classes like FPLut, Native.Utils and instantiates a static resource manager that is shared over multiple server simulations. This method throws exceptions on errors. More...
|
|
void | Shutdown () |
| Disposes the Quantum runner. More...
|
|
void | Start (DeterministicSessionContextStartArguments args) |
| Implements the start of the Quantum online session. Instantiates a Quantum runner. More...
|
|
This class implements the IDeterministicSessionContext interface inside the simulation project. It's used on the custom server to access Quantum simulation code like the resource manager and command serialization. A static resource manager is created during Init() that is shared between multiple server simulation instances.
◆ Init()
void Quantum.DotNetSessionContext.Init |
( |
DeterministicSessionContextInitArguments |
args | ) |
|
|
inline |
Initialized the server simulation. It initializes static classes like FPLut, Native.Utils and instantiates a static resource manager that is shared over multiple server simulations. This method throws exceptions on errors.
◆ Shutdown()
void Quantum.DotNetSessionContext.Shutdown |
( |
| ) |
|
|
inline |
Disposes the Quantum runner.
◆ Start()
void Quantum.DotNetSessionContext.Start |
( |
DeterministicSessionContextStartArguments |
args | ) |
|
|
inline |
Implements the start of the Quantum online session. Instantiates a Quantum runner.
- Parameters
-
◆ CommandSerializer
Returns the command serializer created when the simulation started.
◆ SharedResourceManager
IResourceManager Quantum.DotNetSessionContext.SharedResourceManager => _sharedResourceManager |
Access the shared resource manager that was created from the asset database input during the initial creation of the first server instance.
◆ ResourceManager
Return the resource manager assigned to the session context. If no custom resource manager is assigned the static shared resource manager is returned.
◆ AssetSerializer
Get and set the AssetSerializer directly after IDeterministicSessionRunner creation, until it is possible to pass it internally.
◆ CustomResourceManager