Class NoopRequestMemberAccessService
A no-operation implementation of IRequestMemberAccessService that always grants access.
Inheritance
object
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public sealed class NoopRequestMemberAccessService : IRequestMemberAccessService
Constructors
View SourceNoopRequestMemberAccessService()
Declaration
public NoopRequestMemberAccessService()
Methods
View SourceMemberAccessAsync()
Gets the protected access information for the current member.
Declaration
public Task<ProtectedAccess> MemberAccessAsync()
Returns
| Type | Description |
|---|---|
| Task<ProtectedAccess> | The protected access information. |
MemberHasAccessToAsync(IPublishedContent)
Determines whether the current member has access to the specified content.
Declaration
public Task<PublicAccessStatus> MemberHasAccessToAsync(IPublishedContent content)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedContent | content | The published content to check access for. |
Returns
| Type | Description |
|---|---|
| Task<PublicAccessStatus> | The access status indicating whether the member can access the content. |