qol: formatting

This commit is contained in:
Gary Sharp
2025-07-20 13:47:56 +10:00
parent 49da389c2c
commit 5792771ea1
158 changed files with 693 additions and 679 deletions
@@ -111,7 +111,7 @@ namespace Disco.Services.Devices.DeviceFlags
var assignment = (DeviceFlagAssignment)Event.Entity;
var domainId = assignment.Device?.DeviceDomainId;
if (!ActiveDirectory.IsValidDomainAccountId(domainId))
return;
domainId += "$";
@@ -189,7 +189,7 @@ namespace Disco.Services.Devices.DeviceFlags
status.UpdateStatus((chunkIndexOffset + index) * progressInterval, $"Removing Flag: {flagAssignment.Device}");
flagAssignment.OnRemoveUnsafe(database, technician);
return flagAssignment;
}).ToList();
@@ -8,7 +8,7 @@ namespace Disco.Services.Devices.DeviceFlags
{
public override string TaskName { get { return "Device Flags - Delete Flag"; } }
public override bool SingleInstanceTask { get { return false; }}
public override bool SingleInstanceTask { get { return false; } }
public override bool CancelInitiallySupported { get { return false; } }
public override bool LogExceptionsOnly { get { return true; } }
@@ -168,7 +168,7 @@ namespace Disco.Services.Devices.Enrolment
Request.Hardware.Model,
Request.Hardware.ModelType);
}
public static void LogSessionProgress(string SessionId, int Progress, string Status)
{
Log(EventTypeIds.SessionProgress, new object[]
@@ -35,7 +35,7 @@ namespace Disco.Services.Devices.Importing.Fields
else if (ExistingDevice != null)
{
var detail = ExistingDevice.DeviceDetails.FirstOrDefault(dd => dd.Scope == DeviceDetail.ScopeHardware && dd.Key == DeviceDetail.HardwareKeyACAdapter);
if (detail == null && parsedValue == null)
return Success(EntityState.Unchanged);
else if (detail == null && parsedValue != null)
@@ -35,7 +35,7 @@ namespace Disco.Services.Devices.Importing.Fields
else if (ExistingDevice != null)
{
var detail = ExistingDevice.DeviceDetails.FirstOrDefault(dd => dd.Scope == DeviceDetail.ScopeHardware && dd.Key == DeviceDetail.HardwareKeyWLanMacAddress);
if (detail == null && parsedValue == null)
return Success(EntityState.Unchanged);
else if (detail == null && parsedValue != null)
@@ -16,7 +16,7 @@ namespace Disco.Services.Devices.ManagedGroups
private const string DescriptionFormat = "Devices within the {0} Batch will have their assigned users added to this Active Directory group.";
private const string CategoryDescriptionFormat = "Assigned Users Linked Group";
private const string GroupDescriptionFormat = "{0} [Device Batch Assigned Users]";
private static Lazy<IObservable<RepositoryMonitorEvent>> RepositoryEvents;
private IDisposable repositorySubscription;
@@ -16,7 +16,7 @@ namespace Disco.Services.Devices.ManagedGroups
private const string DescriptionFormat = "Devices within the {0} Profile will have their assigned users added to this Active Directory group.";
private const string CategoryDescriptionFormat = "Assigned Users Linked Group";
private const string GroupDescriptionFormat = "{0} [Device Profile Assigned Users]";
private static Lazy<IObservable<RepositoryMonitorEvent>> RepositoryEvents;
private IDisposable repositorySubscription;
@@ -16,7 +16,7 @@ namespace Disco.Services.Devices.ManagedGroups
private const string DescriptionFormat = "Devices within the {0} Profile will be added to this Active Directory group.";
private const string CategoryDescriptionFormat = "Devices Linked Group";
private const string GroupDescriptionFormat = "{0} [Device Profile Devices]";
private static Lazy<IObservable<RepositoryMonitorEvent>> RepositoryEvents;
private IDisposable repositorySubscription;