コード例 #1
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);
        }
コード例 #2
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);
        }
コード例 #3
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);
 }
コード例 #4
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;
 }
コード例 #5
0
ファイル: ScriptRuntimeDomain.cs プロジェクト: houguohua/Scut
 /// <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;
 }
コード例 #6
0
ファイル: ScriptRuntimeDomain.cs プロジェクト: yunjoker/Scut
 /// <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;
 }