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