Table of Contents

Class Zones

Namespace
ToSic.Eav.DataSources.Sys
Assembly
ToSic.Eav.DataSources.dll

DataSource base for lightweight data sources which are quite simple and convention based.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
[VisualQuery(NiceName = "Zones", UiHint = "Zones of an installation", Icon = "border_outer", Type = DataSourceType.System, NameId = "6edeedb4-db82-4afc-8e17-c29cd8b81770", Audience = Audience.Advanced, NameIds = new string[] { "ToSic.Eav.DataSources.System.Zones, ToSic.Eav.Apps", "ToSic.Eav.DataSources.Zones, ToSic.Eav.Apps" }, HelpLink = "https://github.com/2sic/2sxc/wiki/DotNet-DataSource-Zones")]
public sealed class Zones : CustomDataSource, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable, IServiceWithSetup<IDataSourceOptions>
Inheritance
object
Zones
Implements
IServiceWithSetup<IDataSourceOptions>
Inherited Members

Constructors

Zones(Dependencies, IZoneMapper, IAppsCatalog)

A DataSource that gets all zones in the system.

public Zones(CustomDataSource.Dependencies services, IZoneMapper zoneMapper, IAppsCatalog appsCatalog)

Parameters

services CustomDataSource.Dependencies
zoneMapper IZoneMapper
appsCatalog IAppsCatalog

Methods

GetDefault()

Default method called to return data. If the inheriting class overrides this, it can go without having a full constructor.

protected override IEnumerable<IRawData> GetDefault()

Returns

IEnumerable<IRawData>