Esempio n. 1
0
 PulseEmitter(AgentContext Context, AgentIdentity Identity, PulseEmitterConfig Config)
     : base(Context, Identity)
 {
     this.Timer           = new Timer(Config.Frequency.TotalMilliseconds);
     this.Timer.AutoReset = true;
     this.Timer.Elapsed  += OnPulse;
 }
Esempio n. 2
0
 public static PulseEmitter Define(AgentContext Context, AgentIdentity Identity, PulseEmitterConfig Config)
 => new PulseEmitter(Context, Identity, Config);