Table of Contents

Method InjectProperties

Namespace
Autofac
Assembly
Autofac.dll

InjectProperties<TService>(IComponentContext, TService)

public static TService InjectProperties<TService>(this IComponentContext context, TService instance) where TService : notnull

Parameters

context IComponentContext
instance TService

Returns

TService

Type Parameters

TService

InjectProperties<TService>(IComponentContext, TService, IEnumerable<Parameter>)

public static TService InjectProperties<TService>(this IComponentContext context, TService instance, IEnumerable<Parameter> parameters) where TService : notnull

Parameters

context IComponentContext
instance TService
parameters IEnumerable<Parameter>

Returns

TService

Type Parameters

TService

InjectProperties<TService>(IComponentContext, TService, params Parameter[])

public static TService InjectProperties<TService>(this IComponentContext context, TService instance, params Parameter[] parameters) where TService : notnull

Parameters

context IComponentContext
instance TService
parameters Parameter[]

Returns

TService

Type Parameters

TService

InjectProperties<TService>(IComponentContext, TService, IPropertySelector)

public static TService InjectProperties<TService>(this IComponentContext context, TService instance, IPropertySelector propertySelector) where TService : notnull

Parameters

context IComponentContext
instance TService
propertySelector IPropertySelector

Returns

TService

Type Parameters

TService

InjectProperties<TService>(IComponentContext, TService, IPropertySelector, IEnumerable<Parameter>)

public static TService InjectProperties<TService>(this IComponentContext context, TService instance, IPropertySelector propertySelector, IEnumerable<Parameter> parameters) where TService : notnull

Parameters

context IComponentContext
instance TService
propertySelector IPropertySelector
parameters IEnumerable<Parameter>

Returns

TService

Type Parameters

TService

InjectProperties<TService>(IComponentContext, TService, IPropertySelector, params Parameter[])

public static TService InjectProperties<TService>(this IComponentContext context, TService instance, IPropertySelector propertySelector, params Parameter[] parameters) where TService : notnull

Parameters

context IComponentContext
instance TService
propertySelector IPropertySelector
parameters Parameter[]

Returns

TService

Type Parameters

TService