From 2cac5bd8297b48a328db356dc600897d65828371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20G=C3=B3reczny?= Date: Thu, 10 Dec 2020 13:55:31 +0100 Subject: [PATCH] Fix mapper --- SessionCompanion/SessionCompanion/Startup.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SessionCompanion/SessionCompanion/Startup.cs b/SessionCompanion/SessionCompanion/Startup.cs index c3c0cef..5318f64 100644 --- a/SessionCompanion/SessionCompanion/Startup.cs +++ b/SessionCompanion/SessionCompanion/Startup.cs @@ -40,7 +40,9 @@ namespace SessionCompanion Configuration.GetConnectionString("DefaultConnection"))); services.AddRepositories(); services.AddServices(); - services.AddAutoMapper(typeof(Startup)); + + services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies()); + services.AddSignalR(); services.AddSwaggerGen(s =>