diff options
| author | transtrike <transtrike@gmail.com> | 2021-02-13 16:20:18 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-02-13 16:20:18 +0200 |
| commit | 98e17766b203734a1817eed94338e2d25f4395f7 (patch) | |
| tree | 1266385a56cba56fd55c7faf661dd844bbdf5705 /src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs | |
| parent | 1ab34accfda22ee3ce5c7700e3b97ff3e932d649 (diff) | |
| download | DevHive-98e17766b203734a1817eed94338e2d25f4395f7.tar DevHive-98e17766b203734a1817eed94338e2d25f4395f7.tar.gz DevHive-98e17766b203734a1817eed94338e2d25f4395f7.zip | |
Project Restructure P.1
Diffstat (limited to 'src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs')
| -rw-r--r-- | src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs b/src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs deleted file mode 100644 index 88f21d4..0000000 --- a/src/DevHive.Web/Configurations/Extensions/ConfigureDependencyInjection.cs +++ /dev/null @@ -1,38 +0,0 @@ -using DevHive.Data.Interfaces.Repositories; -using DevHive.Data.Repositories; -using DevHive.Services.Interfaces; -using DevHive.Services.Services; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; - -namespace DevHive.Web.Configurations.Extensions -{ - public static class ConfigureDependencyInjection - { - public static void DependencyInjectionConfiguration(this IServiceCollection services, IConfiguration configuration) - { - services.AddTransient<ILanguageRepository, LanguageRepository>(); - services.AddTransient<IRoleRepository, RoleRepository>(); - services.AddTransient<ITechnologyRepository, TechnologyRepository>(); - services.AddTransient<IUserRepository, UserRepository>(); - services.AddTransient<IPostRepository, PostRepository>(); - services.AddTransient<ICommentRepository, CommentRepository>(); - services.AddTransient<IFeedRepository, FeedRepository>(); - services.AddTransient<IRatingRepository, RatingRepository>(); - - services.AddTransient<ILanguageService, LanguageService>(); - services.AddTransient<IRoleService, RoleService>(); - services.AddTransient<ITechnologyService, TechnologyService>(); - services.AddTransient<IUserService, UserService>(); - services.AddTransient<IPostService, PostService>(); - services.AddTransient<ICommentService, CommentService>(); - services.AddTransient<IFeedService, FeedService>(); - services.AddTransient<ICloudService, CloudinaryService>(options => - new CloudinaryService( - cloudName: configuration.GetSection("Cloud").GetSection("cloudName").Value, - apiKey: configuration.GetSection("Cloud").GetSection("apiKey").Value, - apiSecret: configuration.GetSection("Cloud").GetSection("apiSecret").Value)); - services.AddTransient<IRateService, RateService>(); - } - } -} |
