Exemple #1
0
 public UserAccessTokenService(
     IOptions <OrleansAuthOptions> _options,
     ILogger <UserAccessTokenService> _logger,
     IServiceProvider _serviceProvider)
 {
     this.options         = _options?.Value;
     this.logger          = _logger;
     this.serviceProvider = _serviceProvider;
 }
Exemple #2
0
 /// <summary>
 /// 客户端访问令牌
 /// </summary>
 /// <param name="_options"></param>
 /// <param name="_logger"></param>
 public ClientAccessTokenService(IOptions <OrleansAuthOptions> _options, ILogger <ClientAccessTokenService> _logger)
 {
     this.options = _options?.Value;
     this.logger  = _logger;
 }
Exemple #3
0
 public OrleansClient(IServiceProvider serviceProvider, IOptions <OrleansAuthOptions> options, ILogger <OrleansClient> logger)
 {
     this.Logger          = logger;
     this.ServiceProvider = serviceProvider;
     this.Options         = options?.Value;
 }