View Source
Class PreviewService
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class PreviewService : IPreviewService
Constructors
View Source
PreviewService(ICookieManager, IPreviewTokenGenerator, IServiceScopeFactory, IRequestCache)
Declaration
public PreviewService(ICookieManager cookieManager, IPreviewTokenGenerator previewTokenGenerator, IServiceScopeFactory serviceScopeFactory, IRequestCache requestCache)
Parameters
Methods
View Source
EndPreviewAsync()
Declaration
public Task EndPreviewAsync()
Returns
View Source
IsInPreview()
Declaration
public bool IsInPreview()
Returns
Type |
Description |
System.Boolean |
|
View Source
TryEnterPreviewAsync(IUser)
Declaration
public async Task<bool> TryEnterPreviewAsync(IUser user)
Parameters
Type |
Name |
Description |
IUser |
user |
|
Returns
Type |
Description |
Task<System.Boolean> |
|
View Source
TryGetPreviewClaimsIdentityAsync()
Declaration
public async Task<Attempt<ClaimsIdentity>> TryGetPreviewClaimsIdentityAsync()
Returns
Type |
Description |
Task<Attempt<System.Security.Claims.ClaimsIdentity>> |
|