Example #1
0
 internal Scope(IScriptContext context)
 {
     if (!(context is ContextWithBaggage))
     throw new ArgumentException("Context is not one of ours");
     _context = (ContextWithBaggage)context;
 }
Example #2
0
 public Scope()
 {
     _context = new ContextWithBaggage();
     RuntimeHost.InitializeScript(_context);
 }