speicfy Automapper assemblies explicitly to resolve obsolete warning

This commit is contained in:
Collin M. Barrett 2019-05-13 11:09:00 -05:00
parent 3e7db7467e
commit 4dd5a2b528

View file

@ -35,7 +35,7 @@ public static void AddFilterListsApiServices(this IServiceCollection services, I
services.TryAddScoped<SyntaxService>();
services.TryAddScoped<TagService>();
services.TryAddScoped<RuleService>();
services.AddAutoMapper();
services.AddAutoMapper(typeof(Service));
}
public static void AddFilterListsAgentServices(this IServiceCollection services, IConfiguration config)
@ -48,7 +48,7 @@ public static void AddFilterListsAgentServices(this IServiceCollection services,
services.TryAddScoped<GitHubService>();
services.TryAddScoped<SnapshotService>();
services.TryAddScoped<Logger>();
services.AddAutoMapper();
services.AddAutoMapper(typeof(Service));
}
}
}