Class ContentVersionService
- Namespace
- Biwen.QuickApi.Contents.Services
- Assembly
- Biwen.QuickApi.Contents.dll
public class ContentVersionService : IContentVersionService
- Inheritance
-
ContentVersionService
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
ContentVersionService(IHttpContextAccessor, IServiceScopeFactory)
public ContentVersionService(IHttpContextAccessor httpContextAccessor, IServiceScopeFactory serviceScopeFactory)
Parameters
httpContextAccessor IHttpContextAccessor
serviceScopeFactory IServiceScopeFactory
Methods
CreateVersionAsync(Guid, int, string)
public Task CreateVersionAsync(Guid contentId, int version, string snapshot)
Parameters
contentId Guid
version int
snapshot string
Returns
- Task
GetLatestVersionAsync(Guid)
public Task<ContentVersion?> GetLatestVersionAsync(Guid contentId)
Parameters
contentId Guid
Returns
- Task<ContentVersion>
GetVersionAsync(Guid, Guid)
public Task<ContentVersion?> GetVersionAsync(Guid contentId, Guid version)
Parameters
contentId Guid
version Guid
Returns
- Task<ContentVersion>
GetVersionsAsync(Guid)
public Task<IEnumerable<ContentVersion>> GetVersionsAsync(Guid contentId)
Parameters
contentId Guid
Returns
- Task<IEnumerable<ContentVersion>>