Example #1
0
 /// <summary>
 /// Overridden OnActionExecuted
 /// </summary>
 /// <param name="context"></param>
 public override void OnActionExecuted(ActionExecutedContext context)
 {
     DbActionHelper.ReleaseSemaphore();
     base.OnActionExecuted(context);
 }
Example #2
0
        /// <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);
        }