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

Class GadgetFactory

Inheritance
System.Object
GadgetFactory
Implements
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.Shell.Gadgets
Assembly: EPiServer.Shell.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(IGadgetFactory), Lifecycle = ServiceInstanceScope.Singleton)]
[Obsolete("The Episerver gadget framework has been deprecated and was replaced by the Episerver Components.")]
public class GadgetFactory : IGadgetFactory

Constructors

GadgetFactory(IGadgetDefinitionProvider[])

Declaration
public GadgetFactory(IGadgetDefinitionProvider[] providers)
Parameters
Type Name Description
IGadgetDefinitionProvider[] providers

Methods

Create(String)

Declaration
public GadgetDefinition Create(string gadgetName)
Parameters
Type Name Description
System.String gadgetName
Returns
Type Description
GadgetDefinition

CreateGadgetFromTemplate(Guid)

Declaration
public Gadget CreateGadgetFromTemplate(Guid gadgetTemplateId)
Parameters
Type Name Description
System.Guid gadgetTemplateId
Returns
Type Description
Gadget

GetGadgetTemplates()

Declaration
public IEnumerable<Gadget> GetGadgetTemplates()
Returns
Type Description
System.Collections.Generic.IEnumerable<Gadget>

Events

CreatingGadgetDefinition

Declaration
public event EventHandler<GadgetDefinitionEventArgs> CreatingGadgetDefinition
Event Type
Type Description
System.EventHandler<GadgetDefinitionEventArgs>

GettingGadgetTemplates

Declaration
public event EventHandler<GadgetTemplatesEventArgs> GettingGadgetTemplates
Event Type
Type Description
System.EventHandler<GadgetTemplatesEventArgs>

Implements

Extension Methods