private Collection<PSObject> InvokeCore(Pipeline pipeline, IEnumerable<object> inputs) { lock (_dispatcherLock) { return inputs == null ? pipeline.Invoke() : pipeline.Invoke(inputs); } }