Exemple #1
0
 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));
         }
     }
 }
Exemple #2
0
 protected sealed override void ProcessRecord()
 {
     AsyncPump.Run(ProcessRecordAsync);
 }