Rename attribute
MODIFY
WalletWasabi.Backend/Controllers/WabiSabiController.cs
WalletWasabi.Backend/Controllers/WabiSabiController.cs
@@ -20,28 +20,28 @@ namespace WalletWasabi.Backend.Controllers
}
[HttpPost("connection-confirmation")]
- [IdempotentActionFilterAttribute]
+ [Idempotent]
public Task<ConnectionConfirmationResponse> ConfirmConnectionAsync(ConnectionConfirmationRequest request, CancellationToken cancellableToken)
{
return handler.ConfirmConnectionAsync(request, cancellableToken);
}
[HttpPost("input-registration")]
- [IdempotentActionFilterAttribute]
+ [Idempotent]
public Task<InputRegistrationResponse> RegisterInputAsync(InputRegistrationRequest request, CancellationToken cancellableToken)
{
return handler.RegisterInputAsync(request, cancellableToken);
}
[HttpPost("output-registration")]
- [IdempotentActionFilterAttribute]
+ [Idempotent]
public Task<OutputRegistrationResponse> RegisterOutputAsync(OutputRegistrationRequest request, CancellationToken cancellableToken)
{
return handler.RegisterOutputAsync(request, cancellableToken);
}
[HttpPost("credential-issuance")]
- [IdempotentActionFilterAttribute]
+ [Idempotent]
public Task<ReissueCredentialResponse> ReissueCredentialAsync(ReissueCredentialRequest request, CancellationToken cancellableToken)
{
return handler.ReissueCredentialAsync(request, cancellableToken);

RENAME
WalletWasabi.Backend/Filters/IdempotentActionFilterAttribute.cs
WalletWasabi.Backend/Filters/IdempotentAttribute.cs
@@ -2,9 +2,9 @@ using Microsoft.AspNetCore.Mvc;
namespace WalletWasabi.Backend.Filters
{
- public class IdempotentActionFilterAttribute : TypeFilterAttribute
+ public class IdempotentAttribute : TypeFilterAttribute
{
- public IdempotentActionFilterAttribute()
+ public IdempotentAttribute()
: base(typeof(IdempotentActionFilterAttributeImpl))
{
}

Rename attribute