示例#1
0
 public static void Main(string[] args)
 {
     using (var context = new Context())
     {
         using (var application = new DemoApplication(context))
             application.Run();
     }
 }
示例#2
0
 public static void Main(string[] args)
 {
     using (var context = new Context())
     {
         using (var application = new DemoApplication(context))
         {
             Environment.ExitCode = application.Run();
         }
     }
 }
示例#3
0
 public static void Main(string[] args)
 {
     // This is required for loading and compiling *.cs scripts from resource path.
     Context.SetRuntimeApi(new CompiledScriptRuntimeApiImpl());
     using (var context = new Context())
     {
         using (var application = new DemoApplication(context))
         {
             Environment.ExitCode = application.Run();
         }
     }
 }