Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 public void Dispose()
 {
     Unload();
     _currDomain = null;
     _scope.Dispose();
     _scope   = null;
     _context = null;
     GC.SuppressFinalize(this);
 }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        public ScriptRuntimeScope CreateScope(ScriptSettupInfo settupInfo)
        {
            var    type   = typeof(ScriptRuntimeScope);
            string amsKey = type.Assembly.GetName().Name;

            _scope = _context.GetInstance(amsKey, type.FullName, settupInfo) as ScriptRuntimeScope;
            if (_scope != null)
            {
                _scope.Init();
            }
            return(_scope);
        }
Exemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        public ScriptRuntimeScope CreateScope(ScriptSettupInfo settupInfo)
        {
            var    type   = typeof(ScriptRuntimeScope);
            string amsKey = type.Assembly.GetName().Name;

            _scope = CreateRuntimeScope(settupInfo, amsKey, type);
            if (_scope != null)
            {
                _scope.Init();
            }
            return(_scope);
        }
Exemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 public ScriptRuntimeScope CreateScope(ScriptSettupInfo settupInfo)
 {
     try
     {
         var    type   = typeof(ScriptRuntimeScope);
         string amsKey = type.Assembly.GetName().Name;
         _scope = _context.GetInstance(amsKey, type.FullName, settupInfo) as ScriptRuntimeScope;
         if (_scope != null)
         {
             _scope.Init();
         }
     }
     catch (Exception ex)
     {
         TraceLog.WriteError("Script runtime create scope error:{0}", ex);
     }
     return(_scope);
 }
Exemplo n.º 5
0
 /// <summary>
 /// 
 /// </summary>
 public void Dispose()
 {
     Unload();
     _currDomain = null;
     _scope.Dispose();
     _scope = null;
     _context = null;
     GC.SuppressFinalize(this);
 }
Exemplo n.º 6
0
 /// <summary>
 /// 
 /// </summary>
 public ScriptRuntimeScope CreateScope(ScriptSettupInfo settupInfo)
 {
     var type = typeof(ScriptRuntimeScope);
     string amsKey = type.Assembly.GetName().Name;
     _scope = CreateRuntimeScope(settupInfo, amsKey, type);
     if (_scope != null)
     {
         _scope.Init();
     }
     return _scope;
 }
Exemplo n.º 7
0
 /// <summary>
 /// 
 /// </summary>
 public ScriptRuntimeScope CreateScope(ScriptSettupInfo settupInfo)
 {
     try
     {
         var type = typeof(ScriptRuntimeScope);
         string amsKey = type.Assembly.GetName().Name;
         _scope = _context.GetInstance(amsKey, type.FullName, settupInfo) as ScriptRuntimeScope;
         if (_scope != null)
         {
             _scope.Init();
         }
     }
     catch (Exception ex)
     {
         TraceLog.WriteError("Script runtime create scope error:{0}", ex);
     }
     return _scope;
 }
Exemplo n.º 8
0
 /// <summary>
 /// 
 /// </summary>
 public ScriptRuntimeScope CreateScope(ScriptSettupInfo settupInfo)
 {
     var type = typeof(ScriptRuntimeScope);
     string amsKey = type.Assembly.GetName().Name;
     _scope = _context.GetInstance(amsKey, type.FullName, settupInfo) as ScriptRuntimeScope;
     if (_scope != null)
     {
         _scope.Init();
     }
     return _scope;
 }