コード例 #1
0
 public AppAuthorizationPolicyProvider(IOptions <AuthorizationOptions> options,
                                       UserGrpcService.User.UserClient userClient,
                                       IMemoryCache memoryCache,
                                       ILogger <AppAuthorizationPolicyProvider> logger)
     : base(options)
 {
     this.userClient  = userClient;
     this.memoryCache = memoryCache;
     this.logger      = logger;
 }
コード例 #2
0
 public HttpContextHelper(IHttpContextAccessor httpContextAccessor, UserGrpcService.User.UserClient userClient)
 {
     this.httpContextAccessor = httpContextAccessor;
     this.userClient          = userClient;
 }