diff --git a/src/BUTR.CrashReportServer/Extensions/HostExtensions.cs b/src/BUTR.CrashReportServer/Extensions/HostExtensions.cs index 0f37231..431c55d 100644 --- a/src/BUTR.CrashReportServer/Extensions/HostExtensions.cs +++ b/src/BUTR.CrashReportServer/Extensions/HostExtensions.cs @@ -18,7 +18,7 @@ public static async Task SeedDbContextAsync(this IHost host) var logger = scope.ServiceProvider.GetRequiredService>(); try { - var migrations = (await dbContext.Database.GetPendingMigrationsAsync()).Count(); + var migrations = (await dbContext.Database.GetPendingMigrationsAsync()).Count(); await dbContext.Database.MigrateAsync(); if (migrations > 0) await dbContext.Database.ExecuteSqlRawAsync("VACUUM;"); } diff --git a/src/BUTR.CrashReportServer/Extensions/TextExtensions.cs b/src/BUTR.CrashReportServer/Extensions/TextExtensions.cs index 8658520..f9de062 100644 --- a/src/BUTR.CrashReportServer/Extensions/TextExtensions.cs +++ b/src/BUTR.CrashReportServer/Extensions/TextExtensions.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Text; diff --git a/src/BUTR.CrashReportServer/Extensions/UnicodeStream.cs b/src/BUTR.CrashReportServer/Extensions/UnicodeStream.cs index 630bc44..f007cfb 100644 --- a/src/BUTR.CrashReportServer/Extensions/UnicodeStream.cs +++ b/src/BUTR.CrashReportServer/Extensions/UnicodeStream.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Runtime.InteropServices; using System.Threading; @@ -86,7 +86,7 @@ public override void Flush() { } public override long Position { get => throw new NotSupportedException(); set => throw new NotSupportedException(); } public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(); public override void SetLength(long value) => throw new NotSupportedException(); - public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(); + public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(); protected override void Dispose(bool disposing) { diff --git a/src/BUTR.CrashReportServer/Migrations/20230401192915_Initial.cs b/src/BUTR.CrashReportServer/Migrations/20230401192915_Initial.cs index bcf7f4b..1b8d815 100644 --- a/src/BUTR.CrashReportServer/Migrations/20230401192915_Initial.cs +++ b/src/BUTR.CrashReportServer/Migrations/20230401192915_Initial.cs @@ -1,5 +1,6 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; + +using System; #nullable disable @@ -34,4 +35,4 @@ protected override void Down(MigrationBuilder migrationBuilder) name: "file_entity"); } } -} +} \ No newline at end of file diff --git a/src/BUTR.CrashReportServer/Migrations/20230927114922_Json.cs b/src/BUTR.CrashReportServer/Migrations/20230927114922_Json.cs index fb7b498..755f1c5 100644 --- a/src/BUTR.CrashReportServer/Migrations/20230927114922_Json.cs +++ b/src/BUTR.CrashReportServer/Migrations/20230927114922_Json.cs @@ -1,5 +1,6 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; + +using System; #nullable disable @@ -114,4 +115,4 @@ protected override void Down(MigrationBuilder migrationBuilder) defaultValue: 0L); } } -} +} \ No newline at end of file diff --git a/src/BUTR.CrashReportServer/Migrations/20230929075117_FileEntity.cs b/src/BUTR.CrashReportServer/Migrations/20230929075117_FileEntity.cs index ee53537..a2d5b74 100644 --- a/src/BUTR.CrashReportServer/Migrations/20230929075117_FileEntity.cs +++ b/src/BUTR.CrashReportServer/Migrations/20230929075117_FileEntity.cs @@ -49,4 +49,4 @@ protected override void Down(MigrationBuilder migrationBuilder) onDelete: ReferentialAction.Cascade); } } -} +} \ No newline at end of file diff --git a/src/BUTR.CrashReportServer/Migrations/20230929122557_IdEntityGenerator.cs b/src/BUTR.CrashReportServer/Migrations/20230929122557_IdEntityGenerator.cs index 7f9d239..9fc64bd 100644 --- a/src/BUTR.CrashReportServer/Migrations/20230929122557_IdEntityGenerator.cs +++ b/src/BUTR.CrashReportServer/Migrations/20230929122557_IdEntityGenerator.cs @@ -33,4 +33,4 @@ protected override void Down(MigrationBuilder migrationBuilder) oldDefaultValueSql: "hex(randomblob(3))"); } } -} +} \ No newline at end of file diff --git a/src/BUTR.CrashReportServer/Models/Database/IdEntity.cs b/src/BUTR.CrashReportServer/Models/Database/IdEntity.cs index fb0b062..80465a2 100644 --- a/src/BUTR.CrashReportServer/Models/Database/IdEntity.cs +++ b/src/BUTR.CrashReportServer/Models/Database/IdEntity.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace BUTR.CrashReportServer.Models.Database; diff --git a/src/BUTR.CrashReportServer/Models/Database/JsonEntity.cs b/src/BUTR.CrashReportServer/Models/Database/JsonEntity.cs index 7a2bed4..0976669 100644 --- a/src/BUTR.CrashReportServer/Models/Database/JsonEntity.cs +++ b/src/BUTR.CrashReportServer/Models/Database/JsonEntity.cs @@ -1,4 +1,4 @@ -namespace BUTR.CrashReportServer.Models.Database; +namespace BUTR.CrashReportServer.Models.Database; public sealed record JsonEntity : IEntity { diff --git a/src/BUTR.CrashReportServer/Models/TLSError.cs b/src/BUTR.CrashReportServer/Models/TLSError.cs index f0efc02..f13aba7 100644 --- a/src/BUTR.CrashReportServer/Models/TLSError.cs +++ b/src/BUTR.CrashReportServer/Models/TLSError.cs @@ -1,3 +1,3 @@ -namespace BUTR.CrashReportServer.Models; +namespace BUTR.CrashReportServer.Models; public record TLSError(string Message); \ No newline at end of file diff --git a/src/BUTR.CrashReportServer/Services/HexGenerator.cs b/src/BUTR.CrashReportServer/Services/HexGenerator.cs index bba1970..9826728 100644 --- a/src/BUTR.CrashReportServer/Services/HexGenerator.cs +++ b/src/BUTR.CrashReportServer/Services/HexGenerator.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging; using System; using System.Security.Cryptography;