File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
<Project >
2
2
3
3
<PropertyGroup >
4
- <Version >5.11.4 </Version >
4
+ <Version >5.11.5 </Version >
5
5
<PackageReleaseNotes >This release is compatible with Core 3.1</PackageReleaseNotes >
6
6
</PropertyGroup >
7
7
Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ public static IHostBuilder UseUnityServiceProvider(this IHostBuilder hostBuilder
14
14
{
15
15
_factory = new ServiceProviderFactory ( container ) ;
16
16
17
- return hostBuilder . ConfigureServices ( ( context , services ) =>
18
- {
19
- services . Replace ( ServiceDescriptor . Singleton < IServiceProviderFactory < IUnityContainer > > ( _factory ) ) ;
20
- services . Replace ( ServiceDescriptor . Singleton < IServiceProviderFactory < IServiceCollection > > ( _factory ) ) ;
21
- } ) ;
17
+ return hostBuilder . UseServiceProviderFactory < IUnityContainer > ( _factory )
18
+ . ConfigureServices ( ( context , services ) =>
19
+ {
20
+ services . Replace ( ServiceDescriptor . Singleton < IServiceProviderFactory < IUnityContainer > > ( _factory ) ) ;
21
+ services . Replace ( ServiceDescriptor . Singleton < IServiceProviderFactory < IServiceCollection > > ( _factory ) ) ;
22
+ } ) ;
22
23
}
23
24
24
25
public static IWebHostBuilder UseUnityServiceProvider ( this IWebHostBuilder hostBuilder , IUnityContainer container = null )
You can’t perform that action at this time.
0 commit comments