Beispiel #1
0
 public PulseEmitter(IAgentContext context, AgentIdentity identity, PulseEmitterConfig config)
     : base(context, identity)
 {
     Timer           = new Timer(config.Frequency.TotalMilliseconds);
     Timer.AutoReset = true;
     Timer.Elapsed  += OnPulse;
 }
Beispiel #2
0
 public AgentTransition(AgentIdentity Agent, ulong Timestamp, AgentState SourceState, AgentState TargetState)
 {
     this.Agent       = Agent;
     this.Timestamp   = Timestamp;
     this.SourceState = SourceState;
     this.TargetState = TargetState;
 }
Beispiel #3
0
 public AgentTransition(AgentIdentity id, ulong timestamp, AgentStatus src, AgentStatus dst)
 {
     Agent       = id;
     Timestamp   = timestamp;
     SourceState = src;
     TargetState = dst;
 }
Beispiel #4
0
 protected ServiceAgent(AgentContext Context, AgentIdentity Identity)
 {
     this.ServerId = Identity.ServerId;
     this.AgentId  = Identity.AgentId;
     this.Context  = Context;
     Context.Register(this);
     this.State = AgentState.Created;
 }
Beispiel #5
0
Datei: Agent.cs Projekt: 0xCM/z0
 protected Agent(IAgentContext context, AgentIdentity id)
 {
     PartId  = id.PartId;
     HostId  = id.HostId;
     Context = context;
     context.Register(this);
     State = AgentStatus.Created;
 }
Beispiel #6
0
 TraceEventSink(AgentContext Context, AgentIdentity Identity)
     : base(Context, Identity)
 {
 }
Beispiel #7
0
 public static IAgent Define(AgentContext Context, AgentIdentity Identity)
 => new TraceEventSink(Context, Identity);
Beispiel #8
0
 protected SourcedEventEmitter(IAgentContext Context, AgentIdentity Identity)
     : base(Context, Identity)
 {
 }