Beispiel #1
0
 public static string GetProcess(CommandMetadata commandMetadata)
 {
     if (commandMetadata == null)
     {
         throw PSTraceSource.NewArgumentNullException("commandMetaData");
     }
     return(commandMetadata.GetProcessBlock());
 }
Beispiel #2
0
 public static string GetProcess(CommandMetadata commandMetadata) => commandMetadata != null?commandMetadata.GetProcessBlock() : throw ProxyCommand.tracer.NewArgumentNullException("commandMetaData");