Class IdentifierRestService
- Namespace
- OpenSettings.Services.Rest
- Assembly
- OpenSettings.dll
public sealed class IdentifierRestService : IIdentifierRestService, IIdentifierService
- Inheritance
-
IdentifierRestService
- Implements
-
- Inherited Members
-
Constructors
IdentifierRestService(IHttpClientFactory)
public IdentifierRestService(IHttpClientFactory httpClientFactory)
Parameters
httpClientFactory IHttpClientFactory
Methods
public Task<IResponse> CreateIdentifierAsync(CreateIdentifierInput input, CancellationToken cancellationToken = default)
Parameters
input CreateIdentifierInput
cancellationToken CancellationToken
Returns
- Task<IResponse>
public Task<IResponse> DeleteIdentifierAsync(DeleteIdentifierInput input, CancellationToken cancellationToken = default)
Parameters
input DeleteIdentifierInput
cancellationToken CancellationToken
Returns
- Task<IResponse>
DeleteUnmappedIdentifiersAsync(CancellationToken)
public Task<IResponse> DeleteUnmappedIdentifiersAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken CancellationToken
Returns
- Task<IResponse>
public Task<IResponse> DragIdentifierAsync(DragItemSortOrderInput input, CancellationToken cancellationToken = default)
Parameters
input DragItemSortOrderInput
cancellationToken CancellationToken
Returns
- Task<IResponse>
public Task<IResponse> GetIdentifierByIdAsync(GetIdentifierInput input, CancellationToken cancellationToken = default)
Parameters
input GetIdentifierInput
cancellationToken CancellationToken
Returns
- Task<IResponse>
public Task<IResponse> GetIdentifierBySlugAsync(GetIdentifierInput input, CancellationToken cancellationToken = default)
Parameters
input GetIdentifierInput
cancellationToken CancellationToken
Returns
- Task<IResponse>
public Task<IResponse> GetIdentifiersAsync(GetIdentifiersInput input, CancellationToken cancellationToken = default)
Parameters
input GetIdentifiersInput
cancellationToken CancellationToken
Returns
- Task<IResponse>
GetOrCreateAsync(string, SetSortOrderPosition, Guid?, CancellationToken)
public Task<IResponse<GetOrCreateResponse>> GetOrCreateAsync(string name, SetSortOrderPosition setSortOrderPosition, Guid? createdById, CancellationToken cancellationToken = default)
Parameters
name string
setSortOrderPosition SetSortOrderPosition
createdById Guid?
cancellationToken CancellationToken
Returns
- Task<IResponse<GetOrCreateResponse>>
public Task<IResponse> GetPaginatedIdentifiersAsync(GetPaginatedInput input, CancellationToken cancellationToken = default)
Parameters
input GetPaginatedInput
cancellationToken CancellationToken
Returns
- Task<IResponse>
ReorderAsync()
public Task<IResponse> ReorderAsync()
Returns
- Task<IResponse>
public Task<IResponse> UpdateIdentifierAsync(UpdateIdentifierInput input, CancellationToken cancellationToken = default)
Parameters
input UpdateIdentifierInput
cancellationToken CancellationToken
Returns
- Task<IResponse>
public Task<IResponse> UpdateIdentifierSortOrderAsync(UpdateIdentifierSortOrderInput input, CancellationToken cancellationToken = default)
Parameters
input UpdateIdentifierSortOrderInput
cancellationToken CancellationToken
Returns
- Task<IResponse>