protected sealed override void ProcessRecord() { try { AsyncPump.Run(ProcessRecordAsync); } catch (Exception e) { if (e is PipelineStoppedException) { // PipelineStoppedException shouldn't be ignored. throw e; } else { // Handle the exception and continue to process other objects. WriteError(new ErrorRecord(e, "Docker Client Exception", ErrorCategory.NotSpecified, null)); } } }
protected sealed override void ProcessRecord() { AsyncPump.Run(ProcessRecordAsync); }