View Source
Class PublicAccessChecker
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public class PublicAccessChecker : IPublicAccessChecker
Constructors
View Source
PublicAccessChecker(IHttpContextAccessor, IPublicAccessService, IContentService)
Declaration
public PublicAccessChecker(IHttpContextAccessor httpContextAccessor, IPublicAccessService publicAccessService, IContentService contentService)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Http.IHttpContextAccessor |
httpContextAccessor |
|
IPublicAccessService |
publicAccessService |
|
IContentService |
contentService |
|
Methods
View Source
HasMemberAccessToContentAsync(Int32)
Declaration
public async Task<PublicAccessStatus> HasMemberAccessToContentAsync(int publishedContentId)
Parameters
Type |
Name |
Description |
System.Int32 |
publishedContentId |
|
Returns
Type |
Description |
Task<PublicAccessStatus> |
|
View Source
HasMemberAccessToContentAsync(Int32, ClaimsPrincipal)
Declaration
public async Task<PublicAccessStatus> HasMemberAccessToContentAsync(int publishedContentId, ClaimsPrincipal claimsPrincipal)
Parameters
Type |
Name |
Description |
System.Int32 |
publishedContentId |
|
System.Security.Claims.ClaimsPrincipal |
claimsPrincipal |
|
Returns
Type |
Description |
Task<PublicAccessStatus> |
|