View Source
Class PreviewService
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class PreviewService : IPreviewService
Constructors
View Source
PreviewService(ICookieManager, IPreviewTokenGenerator, IServiceScopeFactory)
Declaration
public PreviewService(ICookieManager cookieManager, IPreviewTokenGenerator previewTokenGenerator, IServiceScopeFactory serviceScopeFactory)
Parameters
Methods
View Source
EndPreviewAsync()
Declaration
public Task EndPreviewAsync()
Returns
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>> |
|