public AuthenticateMiddleware(RequestDelegate next, AuthenticateOption option = null)
 {
     _next   = next;
     _option = option ?? new AuthenticateOption();
 }
 public static IApplicationBuilder UseAuthenticate(this IApplicationBuilder builder, AuthenticateOption option)
 {
     return(builder.UseMiddleware <AuthenticateMiddleware>(option));
 }