Table of Contents

Class SitecoreLayoutContextBindingSource

Namespace
Sitecore.AspNetCore.SDK.RenderingEngine.Binding.Sources
Assembly
Sitecore.AspNetCore.SDK.RenderingEngine.dll

Binding source for binding Sitecore Context data.

public class SitecoreLayoutContextBindingSource : SitecoreLayoutBindingSource, IEquatable<BindingSource?>
Inheritance
SitecoreLayoutContextBindingSource
Implements
Inherited Members

Constructors

SitecoreLayoutContextBindingSource()

Initializes a new instance of the SitecoreLayoutContextBindingSource class.

public SitecoreLayoutContextBindingSource()

Methods

GetModel(IServiceProvider, ModelBindingContext, ISitecoreRenderingContext)

Gets the model for binding.

public override object? GetModel(IServiceProvider serviceProvider, ModelBindingContext bindingContext, ISitecoreRenderingContext renderingContext)

Parameters

serviceProvider IServiceProvider

The IServiceProvider.

bindingContext ModelBindingContext

The ModelBindingContext.

renderingContext ISitecoreRenderingContext

Returns

object

The bound model.