allowing people to inject functions as custom middleware

This commit is contained in:
tom.pallister
2016-10-19 19:32:05 +01:00
parent b8951c4698
commit ab5d7fa33d
10 changed files with 320 additions and 30 deletions

View File

@ -39,7 +39,7 @@
"preserveCompilationContext": true,
"copyToOutput": {
"include": [
"configuration.yaml"
"middlewareConfiguration.yaml"
]
}
},
@ -57,7 +57,7 @@
"Areas/**/Views",
"appsettings.json",
"web.config",
"configuration.yaml"
"middlewareConfiguration.yaml"
]
},

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<middlewareConfiguration>
<!--
Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380
@ -11,4 +11,4 @@
</handlers>
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>
</system.webServer>
</configuration>
</middlewareConfiguration>