pszczyg

DecoratorLogger_3

Jul 28th, 2021
751
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class MyCmdlet : PSCmdlet
  2. {
  3.  private ILogger Logger;
  4.  
  5.  protected CoreViewCmdlet(ILogger logger = null) {
  6.     Logger = logger ?? new CmdletLogger(this);
  7.  }
  8. }
RAW Paste Data