public ApiResourcesController(INotificationHandler <DomainNotification> notifications, IMediatorHandler mediator, IApiResourceService apiService) : base(notifications, mediator) { _apiService = apiService; }
public MyController( IApiResourceService apiResourceService, IClientService clientService) { _apiResourceService = apiResourceService; _clientService = clientService; }
public ApiResourceController(IApiResourceService service) { if (service == null) { throw new ArgumentNullException(nameof(service)); } _service = service; }
public ResourceStore(IIdentityResourceService identityResourceService, IApiResourceService apiResourceService, ILogger <ResourceStore> logger, IMapper mapper) { _identityResourceService = identityResourceService; _apiResourceService = apiResourceService; _logger = logger; _mapper = mapper; }
public ConfigurationController(IIdentityResourceService identityResourceService, IApiResourceService apiResourceService, IClientService clientService, IStringLocalizer <ConfigurationController> localizer, ILogger <ConfigurationController> logger) : base(logger) { _identityResourceService = identityResourceService; _apiResourceService = apiResourceService; _clientService = clientService; _localizer = localizer; }
public AdminApiMutation(IApiResourceService apiResourceService, IClientService clientService, IIdentityResourceService identityResourceService, IPersistedGrantAspNetIdentityService persistedGrantsService, IMapper mapper) { // Store injected dependencies // Setup the Mutexes SetupApiResources(); SetupClients(); SetupIdentityResources(); SetupPersistedGrants(); SetupRoles(); SetupUsers(); }
public async Task AddApiResource() { string d = "944d6r8wQsImSaty53p12JQ4VdmpMO0r".Sha512(); IApiResourceService service = Startup.CreateCluster().GrainFactory.GetGrain <IApiResourceService>(0); var request = new DTO.ApiResourceAddRequestDto() { Description = "COTC_API", DisplayName = "COTC服务", Name = "COTC_API" }; var secret = new DTO.SecretDto("d7sUJjDOwN5QgqqWIhQoXKMqQR13HKpL", "基金服务-d7sUJjDOwN5QgqqWIhQoXKMqQR13HKpL", Convert.ToDateTime("2030-01-01 12:12:12")); request.Secrets.Add(secret); var r = await service.AddAsync(request); }
public ConfigurationController(IIdentityResourceService identityResourceService, IApiResourceService apiResourceService, IClientService clientService, IStringLocalizer <ConfigurationController> localizer, ILogger <ConfigurationController> logger, IAuthorizationService authorizationService, IClientManagerService clientManagerService, IdentityServerConfigurationDbContext dbContext) : base(logger) { _identityResourceService = identityResourceService; _apiResourceService = apiResourceService; _clientService = clientService; _localizer = localizer; _authorization = authorizationService; _clientManagerService = clientManagerService; _dbContext = dbContext; }
public AdminApiQuery(IApiResourceService apiResourceService, IClientService clientService, IIdentityResourceService identityResourceService, IPersistedGrantAspNetIdentityService persistedGrantsService, IMapper mapper) { // Store injected dependencies _apiResourceService = apiResourceService; _clientService = clientService; _identityResourceService = identityResourceService; _persistedGrantsService = persistedGrantsService; _mapper = mapper; // Setup the Queries SetupApiResources(); SetupClients(); SetupIdentityResources(); SetupPersistedGrants(); SetupRoles(); SetupUsers(); }
public MetaController(IClientService clientService, IIdentityResourceService identityResourceService, IApiResourceService apiResourceService) { if (clientService == null) { throw new ArgumentNullException(nameof(clientService)); } if (identityResourceService == null) { throw new ArgumentNullException(nameof(identityResourceService)); } if (apiResourceService == null) { throw new ArgumentNullException(nameof(apiResourceService)); } _clientService = clientService; _identityResourceService = identityResourceService; _apiResourceService = apiResourceService; }
public ApiResourcesController(IApiResourceService apiResourceService, IApiErrorResources errorResources, IMapper mapper) { _apiResourceService = apiResourceService; _errorResources = errorResources; _mapper = mapper; }
public ApiResourcesController(IApiResourceService service) { _service = service; }
public IndexModel(IApiResourceService apiResourceService) { ApiResourceService = apiResourceService; }
public async Task GetApiResource() { IApiResourceService service = Startup.CreateCluster().GrainFactory.GetGrain <IApiResourceService>(1); var r = await service.GetAsync(); }
public AddModel(IApiScopeService apiScopeService, IApiResourceService apiResourceService) { ApiScopeService = apiScopeService; ApiResourceService = apiResourceService; }
/// <summary> /// 初始化Api资源控制器 /// </summary> /// <param name="queryService">Api资源查询服务</param> /// <param name="service">Api资源服务</param> public ApiResourceController(IQueryApiResourceService queryService, IApiResourceService service) : base(queryService) { QueryService = queryService; Service = service; }
public ResourceController(IApiResourceService apiResourceService, IIdentityResourceService identityResourceService) { this.apiResourceService = apiResourceService; this.identityResourceService = identityResourceService; }
public ApiResourcesController(IApiResourceService apiResourceService, IApiErrorResources errorResources) { _apiResourceService = apiResourceService; _errorResources = errorResources; }
public ApiResourceController(IApiResourceService apiResourceService, ILocalizationService localizationService) { _apiResourceService = apiResourceService; _localizationService = localizationService; }
public TestReourceStore(IApiResourceService resourceSvc) { this.resourceSvc = resourceSvc; }
public ApiResourcesController(IApiResourceService apiResourceService) { _apiResourceService = apiResourceService; }
public ApiResourcesController(IApiResourceService apiResourceService) { this.apiResourceService = apiResourceService ?? throw new ArgumentNullException(nameof(apiResourceService)); }
public ApiResourceApiController(IApiResourceService apiResourceService, IMapper mapper) : base(mapper) { _apiResourceService = apiResourceService; }
public TestClientStore(IClientService ClientSvc, IClientApiResourceService ClientApiResourceSvc, IApiResourceService ApiResourceSvc) { this.ClientSvc = ClientSvc; this.ClientApiResourceSvc = ClientApiResourceSvc; this.ApiResourceSvc = ApiResourceSvc; }