CompositeExtensionFactory<TExtension> Class

Definition

Represents a factory for creating composite extensions.

public class CompositeExtensionFactory<TExtension> : ICloneable where TExtension : class, IExtension
type CompositeExtensionFactory<'Extension (requires 'Extension : null and 'Extension :> IExtension)> = class
    interface ICloneable
Public Class CompositeExtensionFactory(Of TExtension)
Implements ICloneable

Type Parameters

TExtension

The type of the extension.

Inheritance
CompositeExtensionFactory<TExtension>
Implements

Remarks

This helper type is used to create a composite extension that is composed of multiple extensions without having to handle either the communication between the extensions or the lifetime of the extensions instances.

Constructors

Name Description
CompositeExtensionFactory<TExtension>(Func<IServiceProvider,TExtension>)

Initializes a new instance of the CompositeExtensionFactory<TExtension> class.

CompositeExtensionFactory<TExtension>(Func<TExtension>)

Initializes a new instance of the CompositeExtensionFactory<TExtension> class.

Explicit Interface Implementations

Name Description
ICloneable.Clone()

Creates a new object that is a copy of the current instance.

Applies to