public AgentNotification(SystemNodeIdentifier Host, SystemIdentifier System, AgentIdentifier Agent, ServiceAgentState State, IAppMessage Message) { this.Host = Host; this.System = System; this.Agent = Agent; this.State = State; this.Message = Message; }
public AgentRuntimeStatus(AgentIdentifier AgentId, ServiceAgentState CurrentState, DateTime?AsOf = null) { this.AgentId = AgentId; this.CurrentState = CurrentState; this.AsOf = AsOf ?? now(); }
public static IAppMessage InvalidStartState(string AgentName, ServiceAgentState AgentState) => warn($"The {AgentName} cannot start while in the {AgentState} state");
/// <summary> /// Issued to reveal agent state /// </summary> /// <param name="AgentName">The name of the agent</param> /// <param name="AgentState"></param> /// <returns></returns> public static IAppMessage AgentHasState(string AgentName, ServiceAgentState AgentState) => inform("The @AgentName agent is in the @AgentState state", new { AgentName, AgentState });
public AgentStateTransition(ServiceAgentState SourceState, ServiceAgentState TargetState, object Data = null) { this.SourceState = SourceState; this.TargetState = TargetState; this.Data = Data; }