Skip to content

Commit

Permalink
#658 - Configure for IIS app init (startup automatically before first…
Browse files Browse the repository at this point in the history
… request)
  • Loading branch information
rnwood committed Mar 25, 2021
1 parent 96c31e1 commit 9dfb74e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions Rnwood.Smtp4dev/Rnwood.Smtp4dev.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@

<PropertyGroup>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
<UserSecretsId>166ca2db-ad20-40b7-95ab-1634e9dd4404</UserSecretsId>
</PropertyGroup>

<ItemGroup>
Expand Down
16 changes: 16 additions & 0 deletions Rnwood.Smtp4dev/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\Rnwood.Smtp4dev.exe" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="outofprocess" />
</system.webServer>
</location>
<system.webServer>
<applicationInitialization doAppInitAfterRestart="true">
<clear />
</applicationInitialization>
</system.webServer>
</configuration>

0 comments on commit 9dfb74e

Please sign in to comment.