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; }
static PSWorkflowRuntime() { PSWorkflowRuntime.syncLock = new object(); PSWorkflowRuntime._tracer = new Tracer(); PSWorkflowRuntime._psPerfCountersMgrInst = PSPerfCountersMgr.Instance; }
static PSOutOfProcessActivityController() { PSOutOfProcessActivityController.PerfCountersMgr = PSPerfCountersMgr.Instance; }
static Connection() { Connection.EventArgs = new EventArgs(); Connection._perfCountersMgr = PSPerfCountersMgr.Instance; }
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); }
static PSWorkflowJob() { PSWorkflowJob.StructuredTracer = new Tracer(); PSWorkflowJob._perfCountersMgr = PSPerfCountersMgr.Instance; }
static ConnectionManager() { ConnectionManager._perfCountersMgr = PSPerfCountersMgr.Instance; }