public void Handle(IRequest request, Response response)
 {
     if (request.UnitOfWork != null)
     {
         request.UnitOfWork.Dispose();
         request.UnitOfWork = null;
     }
 }
 /// <summary>
 ///     After request
 /// </summary>
 /// <param name="request">Input request</param>
 /// <param name="response">Output response</param>
 public void Handle(IRequest request, Response response)
 {
     if (request.Session != null && !request.Session.CookieExist)
     {
         var httpresponse = response as HttpResponse;
         if (httpresponse == null)
             return;
         httpresponse.Headers.Add("Set-Cookie",
             $"{SessionKeyCookieName}={request.Session.Key}; Expires={request.Session.Expires:R}; Path=/; HttpOnly");
     }
 }
 public void Handle(IRequest request, Response arg2)
 {
 }