Table of Contents

Class InjectionMethod

Namespace
Unity.Injection
Assembly
Unity.Abstractions.dll

An InjectionMember that configures the container to call a method as part of buildup.

public class InjectionMethod : MethodBase<MethodInfo>, IEquatable<MethodInfo>
Inheritance
InjectionMethod
Implements
Inherited Members
Extension Methods

Constructors

InjectionMethod(string, params object[])

Create a new InjectionMethod instance which will configure the container to call the given methods with the given parameters.

public InjectionMethod(string name, params object[] arguments)

Parameters

name string

Name of the method to call.

arguments object[]

Parameter values for the method.

Methods

DeclaredMembers(Type)

public override IEnumerable<MethodInfo> DeclaredMembers(Type type)

Parameters

type Type

Returns

IEnumerable<MethodInfo>

SelectMember(Type, InjectionMember)

protected override MethodInfo SelectMember(Type type, InjectionMember _)

Parameters

type Type
_ InjectionMember

Returns

MethodInfo

ToString()

public override string ToString()

Returns

string