Introduce IPublishedContentType

This commit is contained in:
Stephan
2019-04-15 13:04:14 +02:00
parent 747a8cba2e
commit 34ad8dfb8d
38 changed files with 183 additions and 140 deletions

View File

@@ -17,11 +17,11 @@ namespace Umbraco.Web.PublishedCache
private readonly IMember _member;
private readonly IMembershipUser _membershipUser;
private readonly IPublishedProperty[] _properties;
private readonly PublishedContentType _publishedMemberType;
private readonly IPublishedContentType _publishedMemberType;
public PublishedMember(
IMember member,
PublishedContentType publishedMemberType,
IPublishedContentType publishedMemberType,
IUmbracoContextAccessor umbracoContextAccessor)
:base(umbracoContextAccessor)
{
@@ -126,7 +126,7 @@ namespace Umbraco.Web.PublishedCache
properties.Add(property);
}
public override PublishedContentType ContentType => _publishedMemberType;
public override IPublishedContentType ContentType => _publishedMemberType;
public override int Id => _member.Id;