November Happy Hour will be moved to Thursday December 5th.

Interface IContentSoftLinkStatusService

Repository for working with the status of SoftLink instances.

Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public interface IContentSoftLinkStatusService

Methods

Gets broken links from the database

Declaration
IEnumerable<SoftLink> GetBrokenLinks(ContentReference root, int skipCount, int maxResults)
Parameters
Type Name Description
ContentReference root

The root item.

System.Int32 skipCount

The skip count.

System.Int32 maxResults

The max results.

Returns
Type Description
System.Collections.Generic.IEnumerable<SoftLink>

GetBrokenLinksCount(ContentReference)

Gets total number of broken links from the database

Declaration
int GetBrokenLinksCount(ContentReference root)
Parameters
Type Name Description
ContentReference root

The root item.

Returns
Type Description
System.Int32

Number of broken link

Get Unchecked links from the database

Declaration
IList<SoftLink> GetUncheckedLinks(DateTime lastCheckedDate, TimeSpan ignoreWorkingLinksInterval, int maxNumberOfLinks)
Parameters
Type Name Description
System.DateTime lastCheckedDate

Date when the links were last checked

System.TimeSpan ignoreWorkingLinksInterval

The time back in history where we don't want to recheck working links.

System.Int32 maxNumberOfLinks

Maximum number of links that should be returnd

Returns
Type Description
System.Collections.Generic.IList<SoftLink>

Links that has not been checked prior to the start date

Save softlink status

Declaration
void SaveLinkStatus(IEnumerable<SoftLink> links)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<SoftLink> links

A list of SoftLink instances

Extension Methods