|
|
@ -23,6 +23,7 @@ public class IdempotentChecker : IIdempotentChecker, ITransientDependency |
|
|
_idempotentDeniedHandler = idempotentDeniedHandler; |
|
|
_idempotentDeniedHandler = idempotentDeniedHandler; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[IgnoreIdempotent] |
|
|
public async virtual Task CheckAsync(IdempotentCheckContext context) |
|
|
public async virtual Task CheckAsync(IdempotentCheckContext context) |
|
|
{ |
|
|
{ |
|
|
if (!_idempotentOptions.IsEnabled) |
|
|
if (!_idempotentOptions.IsEnabled) |
|
|
@ -30,6 +31,11 @@ public class IdempotentChecker : IIdempotentChecker, ITransientDependency |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (context.Method.IsDefined(typeof(IgnoreIdempotentAttribute), true)) |
|
|
|
|
|
{ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
var attr = context.Method.GetCustomAttribute<IdempotentAttribute>(); |
|
|
var attr = context.Method.GetCustomAttribute<IdempotentAttribute>(); |
|
|
|
|
|
|
|
|
var methodLockTimeout = _idempotentOptions.DefaultTimeout; |
|
|
var methodLockTimeout = _idempotentOptions.DefaultTimeout; |
|
|
|