qol: formatting
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using Quartz;
|
||||
using Disco.Data.Repository;
|
||||
using Disco.Data.Repository;
|
||||
using Quartz;
|
||||
|
||||
namespace Disco.Services.Logging
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user