/// <summary> /// Overridden OnActionExecuted /// </summary> /// <param name="context"></param> public override void OnActionExecuted(ActionExecutedContext context) { DbActionHelper.ReleaseSemaphore(); base.OnActionExecuted(context); }
/// <summary> /// Overridden OnActionExecutionAsync /// </summary> /// <param name="context"></param> /// <param name="next"></param> /// <returns></returns> public override async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next) { await DbActionHelper.WaitLockSemaphoreAsync().ConfigureAwait(false); await base.OnActionExecutionAsync(context, next); }