Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
Move web.config and use ANCM
Browse files Browse the repository at this point in the history
  • Loading branch information
JunTaoLuo committed Apr 11, 2016
1 parent 5dc5ea5 commit 7e8cedf
Show file tree
Hide file tree
Showing 77 changed files with 336 additions and 239 deletions.
1 change: 1 addition & 0 deletions samples/Builder.Filtering.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public static void Main(string[] args)
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

Expand Down
9 changes: 4 additions & 5 deletions samples/Builder.Filtering.Web/project.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"dependencies": {
"Microsoft.AspNetCore.Http": "1.0.0-*",
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNetCore.Server.WebListener": "0.1.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"frameworks": {
Expand All @@ -20,7 +19,7 @@
"compilationOptions": {
"emitEntryPoint": true
},
"commands": {
"web": "Builder.Filtering.Web"
}
"content": [
"web.config"
]
}
9 changes: 9 additions & 0 deletions samples/Builder.Filtering.Web/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath=".\Builder.Filtering.Web.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
</system.webServer>
</configuration>
1 change: 1 addition & 0 deletions samples/Builder.HelloWorld.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public static void Main(string[] args)
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

Expand Down
9 changes: 4 additions & 5 deletions samples/Builder.HelloWorld.Web/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"dependencies": {
"Microsoft.AspNetCore.Http": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Server.WebListener": "0.1.0-*",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"frameworks": {
Expand All @@ -20,7 +19,7 @@
"compilationOptions": {
"emitEntryPoint": true
},
"commands": {
"web": "Builder.HelloWorld.Web"
}
"content": [
"web.config"
]
}
9 changes: 9 additions & 0 deletions samples/Builder.HelloWorld.Web/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath=".\Builder.HelloWorld.Web.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
</system.webServer>
</configuration>
1 change: 1 addition & 0 deletions samples/Builder.Middleware.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public static void Main(string[] args)
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

Expand Down
9 changes: 4 additions & 5 deletions samples/Builder.Middleware.Web/project.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"dependencies": {
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.Extensions.DependencyInjection": "1.0.0-*",
"Microsoft.AspNetCore.Server.WebListener": "0.1.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
"frameworks": {
Expand All @@ -20,7 +19,7 @@
"compilationOptions": {
"emitEntryPoint": true
},
"commands": {
"web": "Builder.Middleware.Web"
}
"content": [
"web.config"
]
}
9 changes: 9 additions & 0 deletions samples/Builder.Middleware.Web/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath=".\Builder.Middleware.Web.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
</system.webServer>
</configuration>
4 changes: 3 additions & 1 deletion samples/Config.CustomProviders.Web/MyConfigProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ namespace Config.CustomProvider.Web
{
public class MyConfigProvider : IConfigurationProvider
{
private ConfigurationReloadToken _reloadToken = new ConfigurationReloadToken();

public IChangeToken GetReloadToken()
{
return null;
return _reloadToken;
}

public bool TryGet(string key, out string value)
Expand Down
1 change: 1 addition & 0 deletions samples/Config.CustomProviders.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static void Main(string[] args)
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

Expand Down
7 changes: 4 additions & 3 deletions samples/Config.CustomProviders.Web/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"dependencies": {
"Microsoft.AspNetCore.Http": "1.0.0-*",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.Extensions.Configuration": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
Expand All @@ -19,7 +20,7 @@
]
}
},
"commands": {
"web": "Config.CustomProviders.Web"
}
"content": [
"web.config"
]
}
9 changes: 9 additions & 0 deletions samples/Config.CustomProviders.Web/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath=".\Config.CustomProviders.Web.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
</system.webServer>
</configuration>
1 change: 1 addition & 0 deletions samples/Config.Providers.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static void Main(string[] args)
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

Expand Down
7 changes: 3 additions & 4 deletions samples/Config.Providers.Web/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"dependencies": {
"Microsoft.AspNetCore.Http": "1.0.0-*",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.Extensions.Configuration": "1.0.0-*",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-*",
Expand All @@ -21,10 +22,8 @@
]
}
},
"commands": {
"web": "Config.Providers.Web"
},
"content": [
"Config.Providers.ini"
"Config.Providers.ini",
"web.config"
]
}
9 changes: 9 additions & 0 deletions samples/Config.Providers.Web/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath=".\Config.Providers.Web.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
</system.webServer>
</configuration>
1 change: 1 addition & 0 deletions samples/Config.SettingObject.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public static void Main(string[] args)
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

Expand Down
8 changes: 4 additions & 4 deletions samples/Config.SettingObject.Web/project.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"Microsoft.AspNetCore.Http": "1.0.0-*",
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.Extensions.Configuration": "1.0.0-*",
"Microsoft.AspNetCore.Server.WebListener": "0.1.0-*",
Expand All @@ -21,7 +21,7 @@
"compilationOptions": {
"emitEntryPoint": true
},
"commands": {
"web": "Config.SettingObject.Web"
}
"content": [
"web.config"
]
}
9 changes: 9 additions & 0 deletions samples/Config.SettingObject.Web/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath=".\Config.SettingObject.Web.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
</system.webServer>
</configuration>
1 change: 1 addition & 0 deletions samples/Config.WalkingValues.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public static void Main(string[] args)
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

Expand Down
8 changes: 3 additions & 5 deletions samples/Config.WalkingValues.Web/project.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNetCore.Server.WebListener": "0.1.0-*",
"Microsoft.Extensions.Configuration": "1.0.0-*",
Expand All @@ -22,10 +22,8 @@
"compilationOptions": {
"emitEntryPoint": true
},
"commands": {
"web": "Config.WalkingValues.Web"
},
"content": [
"Config.Sources.ini"
"Config.Sources.ini",
"web.config"
]
}
9 changes: 9 additions & 0 deletions samples/Config.WalkingValues.Web/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath=".\Config.WalkingValues.Web.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
</system.webServer>
</configuration>
1 change: 1 addition & 0 deletions samples/Container.Fallback.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public static void Main(string[] args)
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

Expand Down
8 changes: 4 additions & 4 deletions samples/Container.Fallback.Web/project.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNetCore.Server.WebListener": "0.1.0-*",
"Microsoft.Extensions.DependencyInjection": "1.0.0-*",
Expand All @@ -20,7 +20,7 @@
"compilationOptions": {
"emitEntryPoint": true
},
"commands": {
"web": "Container.Fallback.Web"
}
"content": [
"web.config"
]
}
9 changes: 9 additions & 0 deletions samples/Container.Fallback.Web/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath=".\Container.Fallback.Web.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
</system.webServer>
</configuration>
1 change: 1 addition & 0 deletions samples/Content.Upload.Files/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static void Main(string[] args)
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

Expand Down
15 changes: 4 additions & 11 deletions samples/Content.Upload.Files/project.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
{
"version": "1.0.0-*",
"exclude": [
"wwwroot"
],
"publishExclude": [
"**.kproj",
"**.user",
"**.vspscc"
],
"dependencies": {
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-*"
},
Expand All @@ -26,7 +19,7 @@
"compilationOptions": {
"emitEntryPoint": true
},
"commands": {
"web": "Content.Upload.Files"
}
"content": [
"web.config"
]
}
9 changes: 9 additions & 0 deletions samples/Content.Upload.Files/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath=".\Content.Upload.Files.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
</system.webServer>
</configuration>
1 change: 1 addition & 0 deletions samples/Content.Upload.Form/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public static void Main(string[] args)
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseKestrel()
.UseIISIntegration()
.UseStartup<Startup>()
.Build();

Expand Down
Loading

0 comments on commit 7e8cedf

Please sign in to comment.