Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class LinkRepository

Inheritance
System.Object
LinkRepository
Namespace: EPiServer.LinkAnalyzer.Providers.Internal
Assembly: EPiServer.LinkAnalyzer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
[ServiceConfiguration]
public class LinkRepository : Object, ILinkRepository, ILinkStatusUpdater

Constructors

LinkRepository(IContentSoftLinkRepository, IContentSoftLinkStatusService)

Declaration
public LinkRepository(IContentSoftLinkRepository repository, IContentSoftLinkStatusService statusService)
Parameters
Type Name Description
IContentSoftLinkRepository repository
IContentSoftLinkStatusService statusService

Methods

Declaration
public virtual Slice<SoftLink> GetBrokenLinks(ContentReference rootContent, int skipCount, int takeCount)
Parameters
Type Name Description
ContentReference rootContent
System.Int32 skipCount
System.Int32 takeCount
Returns
Type Description
Slice<SoftLink>

GetLinksOnPage(ContentReference)

Declaration
public virtual IEnumerable<SoftLink> GetLinksOnPage(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
System.Collections.Generic.IEnumerable<SoftLink>
Declaration
public virtual IEnumerable<SoftLink> GetUncheckedLinks(DateTime lastCheckedDate, TimeSpan ignoreWorkingLinksInterval, int maxNumberOfLinks)
Parameters
Type Name Description
System.DateTime lastCheckedDate
System.TimeSpan ignoreWorkingLinksInterval
System.Int32 maxNumberOfLinks
Returns
Type Description
System.Collections.Generic.IEnumerable<SoftLink>

ResetCheckedStatus(IEnumerable<ContentReference>)

Declaration
public virtual void ResetCheckedStatus(IEnumerable<ContentReference> referencedContentLinks)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ContentReference> referencedContentLinks
Declaration
protected virtual void ResetCheckedStatus(IEnumerable<SoftLink> softLinks)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<SoftLink> softLinks

ResetCheckedStatus(IEnumerable<Guid>)

Declaration
public virtual void ResetCheckedStatus(IEnumerable<Guid> referencedContentGuids)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Guid> referencedContentGuids
Declaration
public virtual void Update(SoftLink link)
Parameters
Type Name Description
SoftLink link
Declaration
public virtual void UpdateStatus(SoftLink link)
Parameters
Type Name Description
SoftLink link

Implements

Extension Methods