C# 클래스 UmbracoFlare.Manager.UmbracoFlareDomainManager

파일 보기 프로젝트 열기: scyllagroup/UmbracoFlare

공개 메소드들

메소드 설명
FilterToAllowedDomains ( IEnumerable domains ) : IEnumerable

This will take a list of domains and make sure that they are either equal to or a subdomain of the allowed domains in cloudflare.

GetDomainsFromCloudflareZones ( ) : IEnumerable

Gets the domains from each cloudflare zone.

GetUrlsForNode ( IContent content, bool includeDescendants = false ) : List

We want to get the domains associated with the content node. This includes getting the allowed domains on the node as well as searching up the tree to get the parents nodes since they are inherited.

GetUrlsForNode ( int contentId, bool includeDescendants = false ) : List

비공개 메소드들

메소드 설명
GetAllowedZonesAndDomains ( ) : IEnumerable>.KeyValuePair

This method will grab the list of zones from cloudflare. It will then check to make sure that the zone has some corresponding hostnames in umbraco. If it does, we will save the domain names & the zones.

GetDescendantsDomains ( List domains, IEnumerable descendants ) : List
RecursivelyGetParentsDomains ( List domains, IContent content ) : List
UmbracoFlareDomainManager ( ) : System

메소드 상세

FilterToAllowedDomains() 공개 메소드

This will take a list of domains and make sure that they are either equal to or a subdomain of the allowed domains in cloudflare.
public FilterToAllowedDomains ( IEnumerable domains ) : IEnumerable
domains IEnumerable The domains to filter.
리턴 IEnumerable

GetDomainsFromCloudflareZones() 공개 메소드

Gets the domains from each cloudflare zone.
public GetDomainsFromCloudflareZones ( ) : IEnumerable
리턴 IEnumerable

GetUrlsForNode() 공개 메소드

We want to get the domains associated with the content node. This includes getting the allowed domains on the node as well as searching up the tree to get the parents nodes since they are inherited.
public GetUrlsForNode ( IContent content, bool includeDescendants = false ) : List
content IContent
includeDescendants bool
리턴 List

GetUrlsForNode() 공개 메소드

public GetUrlsForNode ( int contentId, bool includeDescendants = false ) : List
contentId int
includeDescendants bool
리턴 List