Interface IProjectProvider
An interface that provides all the methods to interact with an IProject.
Namespace: Unity.Cloud.Assets
Syntax
public interface IProjectProvider
Methods
GetCurrentUserProjectList(IOrganization, Pagination, CancellationToken, Boolean, String)
Implement this method to get a list of IProject for an organization for current user.
Declaration
Task<IProjectPage> GetCurrentUserProjectList(IOrganization organization, Pagination pagination, CancellationToken token, bool enrichWithUsersCount = false, string xCorrelationId = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IOrganization | organization | The genesis id of the organization. |
| Pagination | pagination | The pagination parameters. |
| CancellationToken | token | The cancellation token |
| Boolean | enrichWithUsersCount | A flag indicating whether the projects should have user count. |
| String | xCorrelationId | Correlation id of the request. |
Returns
| Type | Description |
|---|---|
| Task<IProjectPage> | A task whose result is an IProjectPage. |
GetProjectsByOrganizationAndUserIdsAsync(IOrganization, String, Pagination, CancellationToken, Boolean, String)
Implement this method to get a list of IProject for an organization for current user.
Declaration
Task<IProjectPage> GetProjectsByOrganizationAndUserIdsAsync(IOrganization organization, string userId, Pagination pagination, CancellationToken token, bool enrichWithUsersCount = false, string xCorrelationId = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IOrganization | organization | The genesis id of the organization. |
| String | userId | ID of the user |
| Pagination | pagination | An object containing the necessary information create an IAssetPage. |
| CancellationToken | token | The cancellation token |
| Boolean | enrichWithUsersCount | A flag indicating whether the projects should have user count. |
| String | xCorrelationId | Correlation id of the request. |
Returns
| Type | Description |
|---|---|
| Task<IProjectPage> | A task whose result is an IProjectPage. |