public IPublishedContent /*IPublishedMember*/ GetByUsername(string username) { return(GetCacheItem(CacheKeys.MemberCacheMember("ByUsername", _previewDefault, username), () => { EnsureProvider(); var member = _memberService.GetByUsername(username); return member == null ? null : GetById(member, _previewDefault); })); }
public IPublishedContent /*IPublishedMember*/ GetByProviderKey(object key) { return(GetCacheItem(CacheKeys.MemberCacheMember("ByProviderKey", _previewDefault, key), () => { EnsureProvider(); var member = _memberService.GetByProviderKey(key); return member == null ? null : GetById(member, _previewDefault); })); }
public IPublishedContent /*IPublishedMember*/ GetByEmail(string email) { return(GetCacheItem(CacheKeys.MemberCacheMember("ByEmail", _previewDefault, email), () => { EnsureProvider(); var member = _memberService.GetByEmail(email); return member == null ? null : GetById(member, _previewDefault); })); }
public IPublishedContent /*IPublishedMember*/ GetById(int memberId) { return(GetCacheItem(CacheKeys.MemberCacheMember("ById", _previewDefault, memberId), () => { EnsureProvider(); var member = _memberService.GetById(memberId); return member == null ? null : PublishedMember.Create(member, GetContentType(member.ContentTypeId), _previewDefault, _publishedSnapshotAccessor, VariationContextAccessor, _umbracoContextAccessor); })); }
private IPublishedContent /*IPublishedMember*/ GetById(IMember member, bool previewing) { return(GetCacheItem(CacheKeys.MemberCacheMember("ById", _previewDefault, member.Id), () => PublishedMember.Create(member, GetContentType(member.ContentTypeId), previewing, _publishedSnapshotAccessor, VariationContextAccessor, _umbracoContextAccessor))); }