예제 #1
0
		static PSWorkflowJobManager()
		{
			PSWorkflowJobManager.Tracer = PowerShellTraceSourceFactory.GetTraceSource();
			PSWorkflowJobManager.StructuredTracer = new Tracer();
			PSWorkflowJobManager.PerfCountersMgr = PSPerfCountersMgr.Instance;
			PSWorkflowJobManager._lastGcTime = new DateTime(0x7db, 1, 1);
			PSWorkflowJobManager._gcStatus = 0;
			PSWorkflowJobManager.etwTracer = new Tracer();
			PSWorkflowJobManager.TestMode = false;
			PSWorkflowJobManager.ObjectCounter = (long)0;
			PSWorkflowJobManager.CurrentProcessId = Process.GetCurrentProcess().Id;
		}
예제 #2
0
		static PSWorkflowRuntime()
		{
			PSWorkflowRuntime.syncLock = new object();
			PSWorkflowRuntime._tracer = new Tracer();
			PSWorkflowRuntime._psPerfCountersMgrInst = PSPerfCountersMgr.Instance;
		}
		static PSOutOfProcessActivityController()
		{
			PSOutOfProcessActivityController.PerfCountersMgr = PSPerfCountersMgr.Instance;
		}
예제 #4
0
파일: Connection.cs 프로젝트: nickchal/pash
		static Connection()
		{
			Connection.EventArgs = new EventArgs();
			Connection._perfCountersMgr = PSPerfCountersMgr.Instance;
		}
예제 #5
0
		static ActivityHostProcess()
		{
			ActivityHostProcess._perfCountersMgr = PSPerfCountersMgr.Instance;
			string[] strArrays = new string[1];
			strArrays[0] = "%windir%\\system32\\windowspowershell\\v1.0\\modules\\psworkflow\\PSWorkflow.types.ps1xml";
			ActivityHostProcess.ActivitiesTypesFiles = strArrays;
			WSManConnectionInfo wSManConnectionInfo = new WSManConnectionInfo();
			wSManConnectionInfo.Port = 0xb799;
			wSManConnectionInfo.ShellUri = "http://schemas.microsoft.com/powershell/Microsoft.PowerShell.Workflow.ActivityHost";
			ActivityHostProcess.ActivityHostConnectionInfo = wSManConnectionInfo;
			List<string> defaultTypeFiles = TypeTable.GetDefaultTypeFiles();
			defaultTypeFiles.AddRange(ActivityHostProcess.ActivitiesTypesFiles.Select<string, string>(new Func<string, string>(Environment.ExpandEnvironmentVariables)));
			ActivityHostProcess.ActivitiesTypeTable = new TypeTable(defaultTypeFiles);
		}
예제 #6
0
		static PSWorkflowJob()
		{
			PSWorkflowJob.StructuredTracer = new Tracer();
			PSWorkflowJob._perfCountersMgr = PSPerfCountersMgr.Instance;
		}
예제 #7
0
		static ConnectionManager()
		{
			ConnectionManager._perfCountersMgr = PSPerfCountersMgr.Instance;
		}