Table of Contents

Method Register

Namespace
SharpVectors.IoC
Assembly
SharpVectors.Model.dll

Register<T>(SvgContainer, Type)

Registers an implementation type for the specified interface

public static ISvgRegisteredType Register<T>(this SvgContainer container, Type type)

Parameters

container SvgContainer

This container instance

type Type

Implementing type

Returns

ISvgRegisteredType

IRegisteredType object

Type Parameters

T

Interface to register

Register<TInterface, TImplementation>(SvgContainer)

Registers an implementation type for the specified interface

public static ISvgRegisteredType Register<TInterface, TImplementation>(this SvgContainer container)

Parameters

container SvgContainer

This container instance

Returns

ISvgRegisteredType

IRegisteredType object

Type Parameters

TInterface

Interface to register

TImplementation

Implementing type

Register<T>(SvgContainer, Func<T>)

Registers a factory function which will be called to resolve the specified interface

public static ISvgRegisteredType Register<T>(this SvgContainer container, Func<T> factory)

Parameters

container SvgContainer

This container instance

factory Func<T>

Factory method

Returns

ISvgRegisteredType

IRegisteredType object

Type Parameters

T

Interface to register

Register<T>(SvgContainer)

Registers a type

public static ISvgRegisteredType Register<T>(this SvgContainer container)

Parameters

container SvgContainer

This container instance

Returns

ISvgRegisteredType

IRegisteredType object

Type Parameters

T

Type to register