fix: enrollment > enrolment

This commit is contained in:
Gary Sharp
2025-02-16 17:13:55 +11:00
parent 786d4809b5
commit 162ca20046
21 changed files with 160 additions and 160 deletions
@@ -47,7 +47,7 @@ namespace Disco.Services.Devices.Enrolment
{
get
{
return "Device Enrollment";
return "Device Enrolment";
}
}
public override int ModuleId
@@ -340,7 +340,7 @@ namespace Disco.Services.Devices.Enrolment
Id = (int)EventTypeIds.SessionStarting,
ModuleId = _ModuleId,
Name = "Session Starting",
Format = "Starting '{2}' Enrollment for {1} (Session# {0})",
Format = "Starting '{2}' Enrolment for {1} (Session# {0})",
Severity = 0,
UseLive = true,
UsePersist = true,
@@ -384,7 +384,7 @@ namespace Disco.Services.Devices.Enrolment
Id = (int)EventTypeIds.SessionPending,
ModuleId = _ModuleId,
Name = "Session Pending",
Format = "Pending '{2}' Enrollment for {1} (Session# {0}; Reason: {3}; Identifier: {4})",
Format = "Pending '{2}' Enrolment for {1} (Session# {0}; Reason: {3}; Identifier: {4})",
Severity = 0,
UseLive = true,
UsePersist = true,
@@ -395,7 +395,7 @@ namespace Disco.Services.Devices.Enrolment
Id = (int)EventTypeIds.SessionPendingApproved,
ModuleId = _ModuleId,
Name = "Session Pending Approved",
Format = "Pending enrollment approved by {1} (Session# {0}; Reason: {2})",
Format = "Pending enrolment approved by {1} (Session# {0}; Reason: {2})",
Severity = 0,
UseLive = true,
UsePersist = true,
@@ -406,7 +406,7 @@ namespace Disco.Services.Devices.Enrolment
Id = (int)EventTypeIds.SessionPendingRejected,
ModuleId = _ModuleId,
Name = "Session Pending Rejected",
Format = "Pending enrollment rejected by {1} (Session# {0}; Reason: {2})",
Format = "Pending enrolment rejected by {1} (Session# {0}; Reason: {2})",
Severity = 0,
UseLive = true,
UsePersist = true,
@@ -417,7 +417,7 @@ namespace Disco.Services.Devices.Enrolment
Id = (int)EventTypeIds.SessionContinuing,
ModuleId = _ModuleId,
Name = "Session Continuing",
Format = "Continuing '{2}' Enrollment for {1} (Session# {0})",
Format = "Continuing '{2}' Enrolment for {1} (Session# {0})",
Severity = 0,
UseLive = true,
UsePersist = true,
@@ -59,7 +59,7 @@ namespace Disco.Services.Devices.Enrolment
.ToList();
}
public static void ResolvePendingEnrollment(string sessionId, bool approve, string username, string reason)
public static void ResolvePendingEnrolment(string sessionId, bool approve, string username, string reason)
{
if (!pendingEnrolments.TryGetValue(sessionId, out var enrolResponse))
throw new InvalidOperationException("The pending session is invalid or has expired");
@@ -79,7 +79,7 @@ namespace Disco.Services.Devices.Enrolment
}
else
{
enrolResponse.ErrorMessage = $"Enrollment rejected";
enrolResponse.ErrorMessage = $"Enrolment rejected";
EnrolmentLog.LogSessionPendingRejected(sessionId, username, reason);
}
}