Exemplo n.º 1
0
 internal static void InitializeDefaults(TjsContext context)
 {
     if (_default == null)
     {
         System.Threading.Interlocked.CompareExchange(ref _default, context, null);
     }
 }
Exemplo 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
                );
        }