Add AdditionalServiceRegistration action for custom ASP.NET Core DI setup (#611)

This commit is contained in:
starkpl
2021-05-11 07:37:20 +02:00
committed by GitHub
parent a1dc2ba646
commit 80b5eaac6e
7 changed files with 35 additions and 0 deletions

View File

@@ -66,6 +66,8 @@ namespace WireMock.Owin
services.AddSingleton<IMappingMatcher, MappingMatcher>();
services.AddSingleton<IOwinRequestMapper, OwinRequestMapper>();
services.AddSingleton<IOwinResponseMapper, OwinResponseMapper>();
_wireMockMiddlewareOptions.AdditionalServiceRegistration?.Invoke(services);
})
.Configure(appBuilder =>
{