Пример #1
0
 /// <inheritdoc />
 /// <summary>
 /// Test Constructor
 /// </summary>
 protected GenericTickWorker(int tickTimeMs)
 {
     _tickTimeMs            = tickTimeMs;
     _tickTimeRollingMetric = new TickTimeRollingMetric(30);
 }
Пример #2
0
 /// <inheritdoc />
 /// <summary>
 /// Initializes a GenericTickWorker. Once in <see cref="GenericTickWorker.Run"/>, the worker will attempt to
 /// periodically execute all contained <see cref="ITickBehaviour"/> classes once every tickTimeMs.
 /// </summary>
 /// <param name="tickTimeMs">Time in milliseconds between ticks</param>
 /// <param name="workerType">Type of worker</param>
 /// <param name="workerId">Unique ID of worker</param>
 /// <param name="hostname">SpatialOS deployment hostname</param>
 /// <param name="port">SpatialOS deployment port</param>
 protected GenericTickWorker(int tickTimeMs, string workerType, string workerId, string hostname, ushort port)
     : base(workerType, workerId, hostname, port)
 {
     _tickTimeMs            = tickTimeMs;
     _tickTimeRollingMetric = new TickTimeRollingMetric(30);
 }