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. It uses the resource manager of the shared resources that is shared between multiple server simulation instances.
More...
Inherits IDeterministicSessionContext.
Inherited by Quantum.DotNetSessionContext.
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. It uses the resource manager of the shared resources that is shared between multiple server simulation instances.
◆ ServerSessionContext()
Create context and supply a custom resource manager.
- Parameters
-
| shared | Shared global resource manager |
| custom | Custom resource manager for this session |
◆ Shutdown()
| void Quantum.ServerSessionContext.Shutdown |
( |
| ) |
|
|
inline |
Releases the command serializer and the custom resource manager. The custom resource manager is not disposed.
◆ Start()
| void Quantum.ServerSessionContext.Start |
( |
DeterministicSessionContextStartArguments |
args | ) |
|
|
inline |
Implements the start of the Quantum online session. Creates the command serializer from the runtime config.
- Parameters
-
◆ CommandSerializer
Returns the command serializer created when the simulation started.
◆ 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.
◆ CustomResourceManager