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
+8 -8
View File
@@ -1,12 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Disco.Data.Repository;
using System.IO;
using System.Data.SqlServerCe;
using Disco.Data.Repository;
using Newtonsoft.Json;
using Quartz;
using Quartz.Impl;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data.SqlServerCe;
using System.IO;
using System.Linq;
namespace Disco.Services.Logging
{
@@ -50,7 +50,7 @@ namespace Disco.Services.Logging
var appDomain = AppDomain.CurrentDomain;
var servicesAssemblyName = typeof(LogContext).Assembly.GetName().Name;
var logModuleTypes = appDomain.GetAssemblies()
var logModuleTypes = appDomain.GetAssemblies()
.Where(a => !a.GlobalAssemblyCache && !a.IsDynamic &&
(a.GetName().Name == servicesAssemblyName || a.GetReferencedAssemblies().Any(ra => ra.Name == servicesAssemblyName)))
.SelectMany(a => a.GetTypes())
+2 -2
View File
@@ -1,5 +1,5 @@
using Quartz;
using Disco.Data.Repository;
using Disco.Data.Repository;
using Quartz;
namespace Disco.Services.Logging
{
+1 -1
View File
@@ -15,7 +15,7 @@ namespace Disco.Services.Logging.Models
public int EventTypeId { get; set; }
[Required]
public DateTime Timestamp { get; set; }
[Column(TypeName="ntext"), MaxLength]
[Column(TypeName = "ntext"), MaxLength]
public string Arguments { get; set; }
}
}
@@ -1,13 +1,13 @@
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
namespace Disco.Services.Logging.Models
{
[Table("EventTypes")]
public class LogEventType
{
[Required, Key, Column(Order=0), DatabaseGenerated(DatabaseGeneratedOption.None)]
[Required, Key, Column(Order = 0), DatabaseGenerated(DatabaseGeneratedOption.None)]
public int ModuleId { get; set; }
[Required, Key, Column(Order = 1), DatabaseGenerated(DatabaseGeneratedOption.None)]
public int Id { get; set; }
@@ -17,7 +17,7 @@ namespace Disco.Services.Logging.Models
public int Severity { get; set; }
[MaxLength(1024)]
public string Format { get; set; }
[NotMapped]
public bool UsePersist { get; set; }
[NotMapped]
@@ -1,6 +1,6 @@
using System;
using Disco.Models.Exporting;
using Disco.Models.Exporting;
using Newtonsoft.Json;
using System;
namespace Disco.Services.Logging.Models
{
+4 -4
View File
@@ -1,9 +1,9 @@
using System;
using Microsoft.Win32.SafeHandles;
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Win32.SafeHandles;
using System.Runtime.InteropServices;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Web.Mvc;
namespace Disco.Services.Logging