/// <summary>
 /// Unregisters the formatter
 /// </summary>
 /// <param name="context">The processing context</param>
 public override void AfterInvoke(ArgHook.HookContext context)
 {
     if (PipelineOutputFormatter.GetFormatter(targetType) == Formatter)
     {
         PipelineOutputFormatter.UnregisterFormatter(targetType);
     }
 }
 /// <summary>
 /// Registers the formatter
 /// </summary>
 /// <param name="context">The processing context</param>
 public override void BeforeInvoke(ArgHook.HookContext context)
 {
     PipelineOutputFormatter.RegisterFormatter(targetType, Formatter, true);
 }