diff options
| author | transtrike <transtrike@gmail.com> | 2021-03-01 08:45:55 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-03-01 08:45:55 +0200 |
| commit | 804d274223734ea1c67920622ceb453cca602fc9 (patch) | |
| tree | 52a89393afaa1cde5e64fe3f5cdfce2ae21a17b9 /src | |
| parent | d0b2f33af25f6da7ceb85e836bc1e1f7bea8bb4d (diff) | |
| download | DevHive-804d274223734ea1c67920622ceb453cca602fc9.tar DevHive-804d274223734ea1c67920622ceb453cca602fc9.tar.gz DevHive-804d274223734ea1c67920622ceb453cca602fc9.zip | |
Fixed AutoMapper Assembly Error
Diffstat (limited to 'src')
| -rw-r--r-- | src/Web/DevHive.Web/Configurations/Extensions/ConfigureAutoMapper.cs | 3 | ||||
| -rw-r--r-- | src/Web/DevHive.Web/Startup.cs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Web/DevHive.Web/Configurations/Extensions/ConfigureAutoMapper.cs b/src/Web/DevHive.Web/Configurations/Extensions/ConfigureAutoMapper.cs index 0b8194e..cd5679f 100644 --- a/src/Web/DevHive.Web/Configurations/Extensions/ConfigureAutoMapper.cs +++ b/src/Web/DevHive.Web/Configurations/Extensions/ConfigureAutoMapper.cs @@ -1,4 +1,7 @@ using System; +using System.Linq; +using System.Reflection; +using System.Reflection.Emit; using AutoMapper; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Web/DevHive.Web/Startup.cs b/src/Web/DevHive.Web/Startup.cs index dbcf131..40f674d 100644 --- a/src/Web/DevHive.Web/Startup.cs +++ b/src/Web/DevHive.Web/Startup.cs @@ -29,11 +29,11 @@ namespace DevHive.Web x.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; }); + services.DependencyInjectionConfiguration(this.Configuration); services.DatabaseConfiguration(Configuration); services.SwaggerConfiguration(); services.JWTConfiguration(Configuration); services.AutoMapperConfiguration(); - services.DependencyInjectionConfiguration(this.Configuration); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. |
