Class Simulation
Inheritance
System.Object
Simulation
Implements
System.IDisposable
Assembly: Volo.ClientSimulation.dll
Syntax
public class Simulation : ISingletonDependency, IDisposable
Constructors
Simulation(IServiceScopeFactory, IOptions<ClientSimulationOptions>)
Declaration
public Simulation(IServiceScopeFactory serviceScopeFactory, IOptions<ClientSimulationOptions> options)
Parameters
Properties
Clients
Declaration
public List<IClient> Clients { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.List<IClient> |
|
Logger
Declaration
public ILogger<Simulation> Logger { get; set; }
Property Value
Options
Declaration
protected ClientSimulationOptions Options { get; }
Property Value
ServiceScope
Declaration
protected IServiceScope ServiceScope { get; }
Property Value
| Type |
Description |
| IServiceScope |
|
ServiceScopeFactory
Declaration
protected IServiceScopeFactory ServiceScopeFactory { get; }
Property Value
| Type |
Description |
| IServiceScopeFactory |
|
State
Declaration
public SimulationState State { get; }
Property Value
SyncObj
Declaration
protected object SyncObj { get; }
Property Value
| Type |
Description |
| System.Object |
|
Methods
Client_OnStopped(Object, EventArgs)
Declaration
protected virtual void Client_OnStopped(object sender, EventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.EventArgs |
e |
|
CreateSnapshot()
Declaration
public virtual SimulationSnapshot CreateSnapshot()
Returns
Dispose()
Declaration
public virtual void Dispose()
Start()
Declaration
public virtual void Start()
Stop()
Declaration
public virtual void Stop()
Implements
System.IDisposable
Extension Methods