Esempio n. 1
0
 public static void Main(string[] args)
 {
     using (var context = new Context())
     {
         using (var application = new DemoApplication(context))
             application.Run();
     }
 }
Esempio n. 2
0
 public static void Main(string[] args)
 {
     using (var context = new Context())
     {
         using (var application = new DemoApplication(context))
         {
             Environment.ExitCode = application.Run();
         }
     }
 }
Esempio n. 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();
         }
     }
 }