Class ContentApprovalRepositoryExtensions
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Extension method class for IApprovalRepository
Inheritance
System.Object
ContentApprovalRepositoryExtensions
Namespace: EPiServer.Approvals.ContentApprovals
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class ContentApprovalRepositoryExtensions : Object
Methods
GetAsync(IApprovalRepository, ContentReference)
Gets an approval instance by using content reference.
Declaration
public static Task<ContentApproval> GetAsync(this IApprovalRepository repository, ContentReference contentLink)
Parameters
| Type | Name | Description |
|---|---|---|
| IApprovalRepository | repository | The approval repository that is being extended |
| ContentReference | contentLink | A content reference to get an approval instance for |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ContentApproval> | A approval instance |
GetItemsAsync(IApprovalRepository, IEnumerable<ContentReference>)
Gets a list of approval instances by using content references.
Declaration
public static Task<IEnumerable<ContentApproval>> GetItemsAsync(this IApprovalRepository repository, IEnumerable<ContentReference> contentLinks)
Parameters
| Type | Name | Description |
|---|---|---|
| IApprovalRepository | repository | The approval repository that is being extended |
| System.Collections.Generic.IEnumerable<ContentReference> | contentLinks | List of content references to get approval instances for |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ContentApproval>> | A list of approval instances |