diff --git a/Agent/Phantom.Agent.Services/Instances/Procedures/LaunchInstanceProcedure.cs b/Agent/Phantom.Agent.Services/Instances/Procedures/LaunchInstanceProcedure.cs index 0ceadd6..f9552b7 100644 --- a/Agent/Phantom.Agent.Services/Instances/Procedures/LaunchInstanceProcedure.cs +++ b/Agent/Phantom.Agent.Services/Instances/Procedures/LaunchInstanceProcedure.cs @@ -81,7 +81,7 @@ sealed record LaunchInstanceProcedure(InstanceConfiguration Configuration, IServ } context.SetStatus(InstanceStatus.Running); - context.ReportEvent(InstanceEvent.LaunchSucceded); + context.ReportEvent(InstanceEvent.LaunchSucceeded); return launchSuccess.Process; } diff --git a/Common/Phantom.Common.Data.Web/EventLog/EventLogEventType.cs b/Common/Phantom.Common.Data.Web/EventLog/EventLogEventType.cs index 120f9c8..a82c322 100644 --- a/Common/Phantom.Common.Data.Web/EventLog/EventLogEventType.cs +++ b/Common/Phantom.Common.Data.Web/EventLog/EventLogEventType.cs @@ -1,7 +1,7 @@ namespace Phantom.Common.Data.Web.EventLog; public enum EventLogEventType { - InstanceLaunchSucceded, + InstanceLaunchSucceeded, InstanceLaunchFailed, InstanceCrashed, InstanceStopped, @@ -12,7 +12,7 @@ public enum EventLogEventType { public static class EventLogEventTypeExtensions { private static readonly Dictionary<EventLogEventType, EventLogSubjectType> SubjectTypes = new () { - { EventLogEventType.InstanceLaunchSucceded, EventLogSubjectType.Instance }, + { EventLogEventType.InstanceLaunchSucceeded, EventLogSubjectType.Instance }, { EventLogEventType.InstanceLaunchFailed, EventLogSubjectType.Instance }, { EventLogEventType.InstanceCrashed, EventLogSubjectType.Instance }, { EventLogEventType.InstanceStopped, EventLogSubjectType.Instance }, diff --git a/Common/Phantom.Common.Data/Instance/IInstanceEvent.cs b/Common/Phantom.Common.Data/Instance/IInstanceEvent.cs index e6988cc..3ab2240 100644 --- a/Common/Phantom.Common.Data/Instance/IInstanceEvent.cs +++ b/Common/Phantom.Common.Data/Instance/IInstanceEvent.cs @@ -4,7 +4,7 @@ using Phantom.Common.Data.Backups; namespace Phantom.Common.Data.Instance; [MemoryPackable] -[MemoryPackUnion(0, typeof(InstanceLaunchSuccededEvent))] +[MemoryPackUnion(0, typeof(InstanceLaunchSucceededEvent))] [MemoryPackUnion(1, typeof(InstanceLaunchFailedEvent))] [MemoryPackUnion(2, typeof(InstanceCrashedEvent))] [MemoryPackUnion(3, typeof(InstanceStoppedEvent))] @@ -14,7 +14,7 @@ public partial interface IInstanceEvent { } [MemoryPackable(GenerateType.VersionTolerant)] -public sealed partial record InstanceLaunchSuccededEvent : IInstanceEvent { +public sealed partial record InstanceLaunchSucceededEvent : IInstanceEvent { public void Accept(IInstanceEventVisitor visitor) { visitor.OnLaunchSucceeded(this); } @@ -49,7 +49,7 @@ public sealed partial record InstanceBackupCompletedEvent([property: MemoryPackO } public static class InstanceEvent { - public static readonly IInstanceEvent LaunchSucceded = new InstanceLaunchSuccededEvent(); + public static readonly IInstanceEvent LaunchSucceeded = new InstanceLaunchSucceededEvent(); public static readonly IInstanceEvent Crashed = new InstanceCrashedEvent(); public static readonly IInstanceEvent Stopped = new InstanceStoppedEvent(); } diff --git a/Common/Phantom.Common.Data/Instance/IInstanceEventVisitor.cs b/Common/Phantom.Common.Data/Instance/IInstanceEventVisitor.cs index 99e4f42..4486341 100644 --- a/Common/Phantom.Common.Data/Instance/IInstanceEventVisitor.cs +++ b/Common/Phantom.Common.Data/Instance/IInstanceEventVisitor.cs @@ -1,7 +1,7 @@ namespace Phantom.Common.Data.Instance; public interface IInstanceEventVisitor { - void OnLaunchSucceeded(InstanceLaunchSuccededEvent e); + void OnLaunchSucceeded(InstanceLaunchSucceededEvent e); void OnLaunchFailed(InstanceLaunchFailedEvent e); void OnCrashed(InstanceCrashedEvent e); void OnStopped(InstanceStoppedEvent e); diff --git a/Controller/Phantom.Controller.Services/Events/EventLogManager.InstanceEventVisitor.cs b/Controller/Phantom.Controller.Services/Events/EventLogManager.InstanceEventVisitor.cs index 790a167..d517976 100644 --- a/Controller/Phantom.Controller.Services/Events/EventLogManager.InstanceEventVisitor.cs +++ b/Controller/Phantom.Controller.Services/Events/EventLogManager.InstanceEventVisitor.cs @@ -24,8 +24,8 @@ sealed partial class EventLogManager { this.instanceGuid = instanceGuid; } - public void OnLaunchSucceeded(InstanceLaunchSuccededEvent e) { - eventLogManager.EnqueueItem(eventGuid, utcTime, agentGuid, EventLogEventType.InstanceLaunchSucceded, instanceGuid.ToString()); + public void OnLaunchSucceeded(InstanceLaunchSucceededEvent e) { + eventLogManager.EnqueueItem(eventGuid, utcTime, agentGuid, EventLogEventType.InstanceLaunchSucceeded, instanceGuid.ToString()); } public void OnLaunchFailed(InstanceLaunchFailedEvent e) {