public ConfirmationValidationMiddleware(RequestDelegate next, ConfirmationValidationMiddlewareOptions options = null)
 {
     _next    = next;
     _options = options ?? new ConfirmationValidationMiddlewareOptions();
 }
 public static IApplicationBuilder UseConfirmationValidation(this IApplicationBuilder app, ConfirmationValidationMiddlewareOptions options = null)
 {
     return(app.UseMiddleware <ConfirmationValidationMiddleware>(options));
 }