Quantum 3
3.1.0
Default implementation of the session factory. Required to let the server create the bindings to use for example the command serializer on the context or to run the server simulation. Creates specific implementations that the Quantum server does not have access to. More...
Inherits IDeterministicSessionFactory.
Public Member Functions | |
| ServerSessionFactory (IAssetSerializer assetSerializer, bool runServerSimulation=false) | |
| Create the session factory. More... | |
| IAssetSerializer | CreateAssetSerializer () |
| IDeterministicSessionContext | CreateContext () |
| Creates a ServerSessionContext using the loaded shared resource manager. Returns null when the shared resources were not loaded. More... | |
| IDeterministicSessionRunner | CreateRunner () |
Creates a ServerSessionRunner when the factory was created with runServerSimulation, otherwise returns null. More... | |
| IDeterministicSharedResources | CreateSharedResources () |
| Returns the cached ServerSharedResources instance, creating it on the first call. More... | |
Default implementation of the session factory. Required to let the server create the bindings to use for example the command serializer on the context or to run the server simulation. Creates specific implementations that the Quantum server does not have access to.
|
inline |
Create the session factory.
| assetSerializer | Asset serializer shared by all rooms, e.g. QuantumJsonSerializer |
| runServerSimulation | Create a ServerSessionRunner to run the server simulation |
| IDeterministicSessionContext Quantum.ServerSessionFactory.CreateContext | ( | ) |
Creates a ServerSessionContext using the loaded shared resource manager. Returns null when the shared resources were not loaded.
| IDeterministicSessionRunner Quantum.ServerSessionFactory.CreateRunner | ( | ) |
Creates a ServerSessionRunner when the factory was created with runServerSimulation, otherwise returns null.
| IDeterministicSharedResources Quantum.ServerSessionFactory.CreateSharedResources | ( | ) |
Returns the cached ServerSharedResources instance, creating it on the first call.