Skip to content

Commit

Permalink
More rules, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
austins committed Nov 18, 2023
1 parent ed994b3 commit 88b61c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@ dotnet_diagnostic.SA1515.severity = error
dotnet_diagnostic.SA1612.severity = error
dotnet_diagnostic.SA1506.severity = error
dotnet_diagnostic.SA1514.severity = error
dotnet_diagnostic.SA1512.severity = error
5 changes: 3 additions & 2 deletions DiscordTranslationBot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ await Host.CreateDefaultBuilder(args)
{
c.Lifetime = ServiceLifetime.Singleton;
c.NotificationPublisherType = typeof(BackgroundPublisher);
c.RegisterServicesFromAssemblyContaining<Program>();
c.AddOpenBehavior(typeof(ValidationBehavior<,>), ServiceLifetime.Singleton);
c.RegisterServicesFromAssemblyContaining<Program>()
.AddOpenBehavior(typeof(ValidationBehavior<,>), ServiceLifetime.Singleton);
})
.AddSingleton<IBackgroundCommandService, BackgroundCommandService>()
.AddSingleton<ICountryService, CountryService>()
Expand Down

0 comments on commit 88b61c6

Please sign in to comment.