コード例 #1
0
 public static void UseLinuxIfAvailable(this HostConfigurator configurator)
 {
     if (MonoHelper.RunninOnLinux)
     {
         // Needed to overcome mono-service style arguments.
         configurator.ApplyCommandLine(MonoHelper.GetUnparsedCommandLine());
         configurator.UseEnvironmentBuilder((cfg) => new LinuxHostEnvironmentBuilder(cfg));
     }
 }