Show / Hide Table of Contents

Class ExtensionMethodsForLocation

Extension methods used for service location and registration.

Inheritance
System.Object
ExtensionMethodsForLocation
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ExtendedXmlSerializer
Assembly: ExtendedXmlSerializer.dll
Syntax
public static class ExtensionMethodsForLocation

Methods

RegisterWithDependencies<T>(IServiceRepository)

Convenience method to inspect the provided type's dependencies and register them all.

Declaration
public static IServiceRepository RegisterWithDependencies<T>(this IServiceRepository this)
Parameters
IServiceRepository this

The repository to configure.

Returns
IServiceRepository

The configured repository.

Type Parameters
T

The type to inspect.

RegisterWithDependencies<TFrom, TTo>(IServiceRepository)

Convenience method to inspect the provided implementation type's dependencies and register them all.

Declaration
public static IServiceRepository RegisterWithDependencies<TFrom, TTo>(this IServiceRepository this)
    where TTo : TFrom
Parameters
IServiceRepository this

The repository to configure.

Returns
IServiceRepository

The configured repository.

Type Parameters
TFrom

The base type.

TTo

The implementation type.

Back to top Generated by DocFX