Ejemplo n.º 1
0
 internal static void InitializeDefaults(TjsContext context)
 {
     if (_default == null)
     {
         System.Threading.Interlocked.CompareExchange(ref _default, context, null);
     }
 }
Ejemplo n.º 2
0
        void InitializeLanguageContext()
        {
            var options = new Dictionary <string, object>();

            context = new Runtime.TjsContext(
                new Microsoft.Scripting.Runtime.ScriptDomainManager(
                    new DefaultHostingProvider(),
                    new Microsoft.Scripting.Runtime.DlrConfiguration(false, false, options)
                    ),
                options
                );
        }