コード例 #1
0
 internal LocalRunspaceProvider(int timeoutSeconds, int maxRunspaces, PSLanguageMode?languageMode)
 {
     this._requests      = new ConcurrentQueue <LocalRunspaceAsyncResult>();
     this._callbacks     = new ConcurrentQueue <LocalRunspaceAsyncResult>();
     this._tracer        = PowerShellTraceSourceFactory.GetTraceSource();
     this._runspaceCache = new TimeBasedCache <Runspace>(timeoutSeconds);
     this._maxRunspaces  = maxRunspaces;
     this._languageMode  = languageMode;
 }
コード例 #2
0
 internal LocalRunspaceProvider(int timeoutSeconds, int maxRunspaces, PSLanguageMode?languageMode)
 {
     _runspaceCache = new TimeBasedCache <Runspace>(timeoutSeconds);
     _maxRunspaces  = maxRunspaces;
     _languageMode  = languageMode;
 }