Quantum 3
3.0.9
A registry to keep track of all active Quantum runners. More...
Public Member Functions | |
| void | AddRunner (SessionRunner runner) |
| Add a runner. More... | |
| SessionRunner | FindRunner (IDeterministicGame game) |
| Find a runner by SessionRunner.DeterministicGame. More... | |
| SessionRunner | FindRunner (string id) |
| Find a runner by SessionRunner.Id. More... | |
| void | RemoveRunner (SessionRunner runner) |
| Remove a runner. More... | |
| void | ShutdownAll () |
| Calls SessionRunner.Shutdown(ShutdownCause) on all runners. More... | |
| System.Threading.Tasks.Task | ShutdownAllAsync () |
| Calls SessionRunner.WaitForShutdownAsync(System.Threading.CancellationToken) on all runners."/> More... | |
Public Attributes | |
| IEnumerable< SessionRunner > | ActiveRunners => _activeRunners |
| Returns all runners. More... | |
| SessionRunner | Default => _activeRunners.Count == 0 ? default : _activeRunners[0] |
| The default runner. More... | |
Properties | |
| static QuantumRunnerRegistry | Global [get] |
| Singleton instance of the registry. Creates a new instance if none exists. More... | |
A registry to keep track of all active Quantum runners.
|
inline |
Calls SessionRunner.Shutdown(ShutdownCause) on all runners.
|
inline |
Calls SessionRunner.WaitForShutdownAsync(System.Threading.CancellationToken) on all runners."/>
|
inline |
Add a runner.
|
inline |
Remove a runner.
|
inline |
Find a runner by SessionRunner.Id.
| id | Runner id to search. |
null.
|
inline |
Find a runner by SessionRunner.DeterministicGame.
| game | The game that the runner belongs to. |
null.| SessionRunner Quantum.QuantumRunnerRegistry.Default => _activeRunners.Count == 0 ? default : _activeRunners[0] |
The default runner.
If multiple runners exists it will return the first one.
| IEnumerable<SessionRunner> Quantum.QuantumRunnerRegistry.ActiveRunners => _activeRunners |
Returns all runners.
|
staticget |
Singleton instance of the registry. Creates a new instance if none exists.