This repository was archived by the owner on Jun 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +12
-21
lines changed
SampleApp.WindowsServiceHosted Expand file tree Collapse file tree 9 files changed +12
-21
lines changed Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22 <PropertyGroup >
3- <TargetFramework >netcoreapp2.1 </TargetFramework >
3+ <TargetFramework >netcoreapp2.2 </TargetFramework >
44 <TypeScriptCompileBlocked >true</TypeScriptCompileBlocked >
55 <TypeScriptToolsVersion >Latest</TypeScriptToolsVersion >
66 <SpaRoot >ClientApp/</SpaRoot >
77 <DefaultItemExcludes >$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes >
88 </PropertyGroup >
99 <ItemGroup >
1010 <PackageReference Include =" Microsoft.AspNetCore" Version =" 2.2.0" />
11- <PackageReference Include =" Microsoft.AspNetCore.Http" Version =" 2.2.0 " />
11+ <PackageReference Include =" Microsoft.AspNetCore.Http" Version =" 2.2.2 " />
1212 <PackageReference Include =" Microsoft.AspNetCore.Http.Extensions" Version =" 2.2.0" />
1313 <PackageReference Include =" Microsoft.AspNetCore.Hosting.Abstractions" Version =" 2.2.0" />
1414 <PackageReference Include =" Microsoft.AspNetCore.SpaServices.Extensions" Version =" 2.2.0" />
Original file line number Diff line number Diff line change 99 <environmentVariables >
1010 <environmentVariable name =" ASPNETCORE_ENVIRONMENT" value =" Development" />
1111 <environmentVariable name =" ASPNETCORE_HTTPS_PORT" value =" 44337" />
12+ <environmentVariable name =" COMPLUS_ForceENC" value =" 1" />
1213 </environmentVariables >
1314 </aspNetCore >
1415 </system .webServer>
Original file line number Diff line number Diff line change 1111 </PropertyGroup >
1212 <ItemGroup >
1313 <PackageReference Include =" Microsoft.AspNetCore.App" />
14- <PackageReference Include =" Simplify.DI.Provider.SimpleInjector" Version =" 1.4.0" />
1514 <PackageReference Include =" bootstrap" Version =" 3.3.7" PrivateAssets =" All" />
1615 <PackageReference Include =" jQuery" Version =" 3.1.0" PrivateAssets =" All" />
1716 <ProjectReference Include =" ..\..\Simplify.Web\Simplify.Web.csproj" />
Original file line number Diff line number Diff line change 33using Microsoft . AspNetCore . Hosting ;
44using Microsoft . Extensions . DependencyInjection ;
55using Simplify . DI ;
6- using Simplify . DI . Provider . SimpleInjector ;
76using Simplify . Web . Owin ;
87
98namespace SampleApp . SelfHosted
@@ -18,17 +17,14 @@ public void ConfigureServices(IServiceCollection services)
1817
1918 public void Configure ( IApplicationBuilder app , IHostingEnvironment env )
2019 {
21- var provider = new SimpleInjectorDIProvider ( ) ;
22- DIContainer . Current = provider ;
23-
2420 if ( env . IsDevelopment ( ) )
2521 app . UseDeveloperExceptionPage ( ) ;
2622
2723 app . UseAuthentication ( ) ;
2824
2925 app . UseSimplifyWeb ( ) ;
3026
31- provider . Container . Verify ( ) ;
27+ DIContainer . Current . Verify ( ) ;
3228 }
3329 }
3430}
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22 <PropertyGroup >
3- <TargetFramework >netcoreapp2.1 </TargetFramework >
3+ <TargetFramework >netcoreapp2.2 </TargetFramework >
44 <TypeScriptCompileBlocked >true</TypeScriptCompileBlocked >
55 <TypeScriptToolsVersion >Latest</TypeScriptToolsVersion >
66 </PropertyGroup >
77 <ItemGroup >
88 <PackageReference Include =" Microsoft.AspNetCore" Version =" 2.2.0" />
9- <PackageReference Include =" Microsoft.AspNetCore.Http" Version =" 2.2.0 " />
9+ <PackageReference Include =" Microsoft.AspNetCore.Http" Version =" 2.2.2 " />
1010 <PackageReference Include =" Microsoft.AspNetCore.Http.Extensions" Version =" 2.2.0" />
1111 <PackageReference Include =" Microsoft.AspNetCore.Hosting.Abstractions" Version =" 2.2.0" />
1212 <PackageReference Include =" Microsoft.AspNetCore.SpaServices.Extensions" Version =" 2.2.0" />
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22 <PropertyGroup >
3- <TargetFramework >netcoreapp2.1 </TargetFramework >
3+ <TargetFramework >netcoreapp2.2 </TargetFramework >
44 <TypeScriptCompileBlocked >true</TypeScriptCompileBlocked >
55 <TypeScriptToolsVersion >Latest</TypeScriptToolsVersion >
66 </PropertyGroup >
77 <ItemGroup >
88 <PackageReference Include =" Microsoft.AspNetCore" Version =" 2.2.0" />
9- <PackageReference Include =" Microsoft.AspNetCore.Http" Version =" 2.2.0 " />
9+ <PackageReference Include =" Microsoft.AspNetCore.Http" Version =" 2.2.2 " />
1010 <PackageReference Include =" Microsoft.AspNetCore.Http.Extensions" Version =" 2.2.0" />
1111 <PackageReference Include =" Microsoft.AspNetCore.Hosting.Abstractions" Version =" 2.2.0" />
1212 <PackageReference Include =" Microsoft.AspNetCore.SpaServices.Extensions" Version =" 2.2.0" />
Original file line number Diff line number Diff line change 11using System ;
22using SampleApp . WindowsServiceHosted . Setup ;
33using Simplify . DI ;
4- using Simplify . DI . Provider . SimpleInjector ;
54using Simplify . WindowsServices ;
65
76namespace SampleApp . WindowsServiceHosted
@@ -31,12 +30,9 @@ private static void Main(string[] args)
3130
3231 private static void InitializeContainer ( )
3332 {
34- var provider = new SimpleInjectorDIProvider ( ) ;
35- DIContainer . Current = provider ;
36-
3733 IocRegistrations . Register ( ) ;
3834
39- provider . Container . Verify ( ) ;
35+ DIContainer . Current . Verify ( ) ;
4036 }
4137 }
4238}
Original file line number Diff line number Diff line change 1111 </PropertyGroup >
1212 <ItemGroup >
1313 <PackageReference Include =" Microsoft.AspNetCore" Version =" 2.2.0" />
14- <PackageReference Include =" Simplify.DI.Provider.SimpleInjector" Version =" 1.4.0" />
15- <PackageReference Include =" Simplify.WindowsServices" Version =" 2.7.0" />
14+ <PackageReference Include =" Simplify.WindowsServices" Version =" 2.8.1" />
1615 <ProjectReference Include =" ..\..\Simplify.Web\Simplify.Web.csproj" />
1716 <Reference Include =" System.ServiceModel" />
1817 </ItemGroup >
Original file line number Diff line number Diff line change 3737 </ItemGroup >
3838 <ItemGroup >
3939 <PackageReference Include =" Microsoft.CSharp" Version =" 4.5.0" />
40- <PackageReference Include =" Microsoft.AspNetCore.Http" Version =" 2.2.0 " />
40+ <PackageReference Include =" Microsoft.AspNetCore.Http" Version =" 2.2.2 " />
4141 <PackageReference Include =" Microsoft.AspNetCore.Http.Extensions" Version =" 2.2.0" />
4242 <PackageReference Include =" Microsoft.AspNetCore.Hosting.Abstractions" Version =" 2.2.0" />
4343 <PackageReference Include =" Microsoft.Extensions.Configuration.Json" Version =" 2.2.0" />
44- <PackageReference Include =" Simplify.DI" Version =" 2.0.1 " />
44+ <PackageReference Include =" Simplify.DI" Version =" 2.1.0 " />
4545 <PackageReference Include =" Simplify.Templates" Version =" 1.5.1" />
4646 <PackageReference Include =" Simplify.String.Sources" Version =" 1.2.0" PrivateAssets =" All" />
4747 <PackageReference Include =" Simplify.System.Sources" Version =" 1.1.0" PrivateAssets =" All" />
You can’t perform that action at this time.
0 commit comments