Interface IOrganizationRepository
The interface for an organization repository.
Namespace: Unity.Cloud.Identity
Assembly: solution.dll
Syntax
public interface IOrganizationRepository
Methods
GetOrganizationAsync(OrganizationId)
Gets a single IOrganization.
Declaration
Task<IOrganization> GetOrganizationAsync(OrganizationId organizationId)
Parameters
Type | Name | Description |
---|---|---|
Organization |
organizationId | The Organization |
Returns
Type | Description |
---|---|
Task<IOrganization> | A task that once completed returns an IOrganization. |
Exceptions
Type | Condition |
---|---|
Not |
ListOrganizationsAsync(Range, CancellationToken)
Lists IOrganization.
Declaration
IAsyncEnumerable<IOrganization> ListOrganizationsAsync(Range range, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Range | range | A range of IOrganization to request. |
Cancellation |
cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
IAsync |
An IAsyncEnumerable<T> of Type IOrganization. |