Example #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;
 }
Example #2
0
 public AgentTransition(AgentIdentity Agent, ulong Timestamp, AgentState SourceState, AgentState TargetState)
 {
     this.Agent       = Agent;
     this.Timestamp   = Timestamp;
     this.SourceState = SourceState;
     this.TargetState = TargetState;
 }
Example #3
0
 public AgentTransition(AgentIdentity id, ulong timestamp, AgentStatus src, AgentStatus dst)
 {
     Agent       = id;
     Timestamp   = timestamp;
     SourceState = src;
     TargetState = dst;
 }
Example #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;
 }
Example #5
0
File: Agent.cs Project: 0xCM/z0
 protected Agent(IAgentContext context, AgentIdentity id)
 {
     PartId  = id.PartId;
     HostId  = id.HostId;
     Context = context;
     context.Register(this);
     State = AgentStatus.Created;
 }
Example #6
0
 TraceEventSink(AgentContext Context, AgentIdentity Identity)
     : base(Context, Identity)
 {
 }
Example #7
0
 public static IAgent Define(AgentContext Context, AgentIdentity Identity)
 => new TraceEventSink(Context, Identity);
Example #8
0
 protected SourcedEventEmitter(IAgentContext Context, AgentIdentity Identity)
     : base(Context, Identity)
 {
 }