proudmonkey / AutoWrapper

A simple, yet customizable global exception handler and Http response wrapper for ASP.NET Core APIs.
MIT License
677 stars 82 forks source link

AutoWrapIgnore with FastEndpoints #149

Open namighajiyev opened 2 months ago

namighajiyev commented 2 months ago

AutoWrapIgnore attribute doesn't work with FastEndpoints. I tried as shown below.

  [AutoWrapIgnore(ShouldLogRequestData = false)]
  public override void Configure()
  {
    Get(DowloadRequest.Route);
    Summary(s =>
    {
    });
  }

  [AutoWrapIgnore(ShouldLogRequestData = false)]
  public override async Task HandleAsync(
  DowloadRequest request,
  CancellationToken cancellationToken)
  {
}