public PulseEmitter(IAgentContext context, AgentIdentity identity, PulseEmitterConfig config) : base(context, identity) { Timer = new Timer(config.Frequency.TotalMilliseconds); Timer.AutoReset = true; Timer.Elapsed += OnPulse; }
public AgentTransition(AgentIdentity Agent, ulong Timestamp, AgentState SourceState, AgentState TargetState) { this.Agent = Agent; this.Timestamp = Timestamp; this.SourceState = SourceState; this.TargetState = TargetState; }
public AgentTransition(AgentIdentity id, ulong timestamp, AgentStatus src, AgentStatus dst) { Agent = id; Timestamp = timestamp; SourceState = src; TargetState = dst; }
protected ServiceAgent(AgentContext Context, AgentIdentity Identity) { this.ServerId = Identity.ServerId; this.AgentId = Identity.AgentId; this.Context = Context; Context.Register(this); this.State = AgentState.Created; }
protected Agent(IAgentContext context, AgentIdentity id) { PartId = id.PartId; HostId = id.HostId; Context = context; context.Register(this); State = AgentStatus.Created; }
TraceEventSink(AgentContext Context, AgentIdentity Identity) : base(Context, Identity) { }
public static IAgent Define(AgentContext Context, AgentIdentity Identity) => new TraceEventSink(Context, Identity);
protected SourcedEventEmitter(IAgentContext Context, AgentIdentity Identity) : base(Context, Identity) { }