File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
HelloWebFullAppDomainPrototype Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 33
44namespace HelloWebFullAppDomainPrototype
55{
6- public class Program
6+ public class Program
77 {
88 public static void Main ( string [ ] args )
99 {
1010 // This sample shows the current working prototype that fixes the application base on .NET Framework.
1111 // This is important so that configuration files, static files and razor views can be found by libraries
1212 // referenced by the application.
13-
13+
1414 // In the other samples, the application base points to where the ".exe" is located. This is problematic
1515 // at development time because it means static files, views and configuration files need to be copied (via compile)
1616 // before running.
17-
17+
1818 // The side effects are that anything above the call to ExecuteInChildAppDomain will be executed twice
1919 // on .NET Framework and Mono.
2020#if NET451
2121 Console . WriteLine ( $ "AppDomain.Id = { AppDomain . CurrentDomain . Id } ") ;
2222 Console . WriteLine ( $ "AppDomain.FriendlyName = { AppDomain . CurrentDomain . FriendlyName } ") ;
2323 Console . WriteLine ( $ "AppDomain.BaseDirectory = { AppDomain . CurrentDomain . BaseDirectory } ") ;
24-
24+
2525 WebHost . ExecuteInChildAppDomain < Startup > ( args ) ;
2626#endif
2727 // The real application logic goes here
2828 WebApplication . Run ( args ) ;
2929 }
3030 }
3131
32-
32+
3333}
You can’t perform that action at this time.
0 commit comments