Skip to content

Commit

Permalink
fix: corrected DI
Browse files Browse the repository at this point in the history
  • Loading branch information
elementh committed Aug 4, 2021
1 parent 1502532 commit 74d4705
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Thankifi.Common.Filters/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public static class ServiceCollectionExtensions
/// <returns><see cref="IServiceCollection"/></returns>
public static IServiceCollection AddFilters(this IServiceCollection services)
{
services.TryAddTransient<IFilter, BinaryFilter>();
services.TryAddTransient<IFilter, BottomifyFilter>();
services.TryAddTransient<IFilter, LeetFilter>();
services.TryAddTransient<IFilter, MockFilter>();
services.TryAddTransient<IFilter, ShoutingFilter>();

services.TryAddTransient<IFilterService, FilterService>();

services.AddTransient<IFilter, BinaryFilter>();
services.AddTransient<IFilter, BottomifyFilter>();
services.AddTransient<IFilter, LeetFilter>();
services.AddTransient<IFilter, MockFilter>();
services.AddTransient<IFilter, ShoutingFilter>();

return services;
}
Expand Down

0 comments on commit 74d4705

Please sign in to comment.