Class DisplayChannelService

Service that handles DisplayChannel instances.

Inheritance
System.Object
DisplayChannelService
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[Obsolete("Use IDisplayChannelService")]
public class DisplayChannelService : IDisplayChannelService

Constructors

DisplayChannelService()

Initializes a new instance of the DisplayChannelService class.

Declaration
public DisplayChannelService()

Properties

Channels

Gets all registered channels.

Declaration
public virtual IList<DisplayChannel> Channels { get; }
Property Value
Type Description
System.Collections.Generic.IList<DisplayChannel>

The channels.

Methods

GetActiveChannels(HttpContextBase)

Gets all DisplayChannel instances that are considered active for specified context.

Declaration
public virtual IEnumerable<DisplayChannel> GetActiveChannels(HttpContextBase context)
Parameters
Type Name Description
System.Web.HttpContextBase context
Returns
Type Description
System.Collections.Generic.IEnumerable<DisplayChannel>

RegisterDisplayMode(IDisplayMode)

Registers an System.Web.WebPages.IDisplayMode instance as an DisplayChannel.

Declaration
public virtual void RegisterDisplayMode(IDisplayMode displayMode)
Parameters
Type Name Description
System.Web.WebPages.IDisplayMode displayMode

RegisterDisplayMode(IDisplayMode, Int32)

Registers an System.Web.WebPages.IDisplayMode instance as an DisplayChannel.

Declaration
public virtual void RegisterDisplayMode(IDisplayMode displayMode, int index)
Parameters
Type Name Description
System.Web.WebPages.IDisplayMode displayMode
System.Int32 index

RegisterDisplayMode(IDisplayMode, Int32, String)

Registers an System.Web.WebPages.IDisplayMode instance as an DisplayChannel.

Declaration
public virtual void RegisterDisplayMode(IDisplayMode displayMode, int index, string resolutionId)
Parameters
Type Name Description
System.Web.WebPages.IDisplayMode displayMode
System.Int32 index
System.String resolutionId

Implements

Extension Methods