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
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Approvals.ContentApprovals
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public static class ContentApprovalRepositoryExtensions
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 |