public PSEventJob(PSEventManager eventManager, PSEventSubscriber subscriber, System.Management.Automation.ScriptBlock action, string name) : base((action == null) ? null : action.ToString(), name) { if (eventManager == null) { throw new ArgumentNullException("eventManager"); } if (subscriber == null) { throw new ArgumentNullException("subscriber"); } base.UsesResultsCollection = true; this.action = action; this.eventManager = eventManager; this.subscriber = subscriber; }
public void AddPowershellScript(P pattern, System.Management.Automation.ScriptBlock script, string processingUnitId) { AddPowershellScript(pattern, script.ToString(), processingUnitId); }