Exemplo n.º 1
0
 public MockAppUserMiddleware(RequestDelegate next, MockAppUserOption option = null)
 {
     _next   = next;
     _option = option ?? new MockAppUserOption()
     {
         MockUserId = "admin"
     };
 }
Exemplo n.º 2
0
 public static IApplicationBuilder UseMockAppUser(this IApplicationBuilder builder, MockAppUserOption option)
 {
     return(builder.UseMiddleware <MockAppUserMiddleware>(option));
 }