Class ApiScopeAppService
Implements
ICrudAppService<ApiScopeWithDetailsDto, Guid, GetApiScopeListInput, CreateApiScopeDto, UpdateApiScopeDto>
Inherited Members
Namespace: Volo.Abp.IdentityServer.ApiScope
Assembly: Volo.Abp.IdentityServer.Application.dll
Syntax
[Authorize("IdentityServer.ApiScope")]
public class ApiScopeAppService : IdentityServerAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IApiScopeAppService, ICrudAppService<ApiScopeWithDetailsDto, Guid, GetApiScopeListInput, CreateApiScopeDto, UpdateApiScopeDto>, ICrudAppService<ApiScopeWithDetailsDto, ApiScopeWithDetailsDto, Guid, GetApiScopeListInput, CreateApiScopeDto, UpdateApiScopeDto>, IReadOnlyAppService<ApiScopeWithDetailsDto, ApiScopeWithDetailsDto, Guid, GetApiScopeListInput>, ICreateUpdateAppService<ApiScopeWithDetailsDto, Guid, CreateApiScopeDto, UpdateApiScopeDto>, ICreateAppService<ApiScopeWithDetailsDto, CreateApiScopeDto>, IUpdateAppService<ApiScopeWithDetailsDto, Guid, UpdateApiScopeDto>, IDeleteAppService<Guid>, IApplicationService, IRemoteService
Constructors
ApiScopeAppService(IApiScopeRepository)
Declaration
public ApiScopeAppService(IApiScopeRepository apiScopeRepository)
Parameters
| Type | Name | Description |
|---|---|---|
| IApiScopeRepository | apiScopeRepository |
Properties
ApiScopeRepository
Declaration
protected IApiScopeRepository ApiScopeRepository { get; }
Property Value
| Type | Description |
|---|---|
| IApiScopeRepository |
Methods
CreateAsync(CreateApiScopeDto)
Declaration
[Authorize("IdentityServer.ApiScope.Create")]
public virtual Task<ApiScopeWithDetailsDto> CreateAsync(CreateApiScopeDto input)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateApiScopeDto | input |
Returns
| Type | Description |
|---|---|
| Task<ApiScopeWithDetailsDto> |
DeleteAsync(Guid)
Declaration
[Authorize("IdentityServer.ApiScope.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id |
Returns
| Type | Description |
|---|---|
| Task |
GetAllListAsync()
Declaration
public virtual Task<List<ApiScopeWithDetailsDto>> GetAllListAsync()
Returns
| Type | Description |
|---|---|
| Task<List<ApiScopeWithDetailsDto>> |
GetAsync(Guid)
Declaration
public virtual Task<ApiScopeWithDetailsDto> GetAsync(Guid id)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id |
Returns
| Type | Description |
|---|---|
| Task<ApiScopeWithDetailsDto> |
GetListAsync(GetApiScopeListInput)
Declaration
public virtual Task<PagedResultDto<ApiScopeWithDetailsDto>> GetListAsync(GetApiScopeListInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| GetApiScopeListInput | input |
Returns
| Type | Description |
|---|---|
| Task<PagedResultDto<ApiScopeWithDetailsDto>> |
UpdateApiScopeClaims(UpdateApiScopeDto, ApiScope)
Declaration
protected virtual void UpdateApiScopeClaims(UpdateApiScopeDto input, ApiScope apiScope)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateApiScopeDto | input | |
| ApiScope | apiScope |
UpdateApiScopeProperties(UpdateApiScopeDto, ApiScope)
Declaration
protected virtual void UpdateApiScopeProperties(UpdateApiScopeDto input, ApiScope apiScope)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateApiScopeDto | input | |
| ApiScope | apiScope |
UpdateAsync(Guid, UpdateApiScopeDto)
Declaration
[Authorize("IdentityServer.ApiScope.Update")]
public virtual Task<ApiScopeWithDetailsDto> UpdateAsync(Guid id, UpdateApiScopeDto input)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | id | |
| UpdateApiScopeDto | input |
Returns
| Type | Description |
|---|---|
| Task<ApiScopeWithDetailsDto> |