Show / Hide Table of Contents

Class InjectionMethod

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

Inheritance
Object
InjectionMember
InjectionMember<MethodInfo, Object[]>
MethodBase<MethodInfo>
InjectionMethod
Implements
IEquatable<MethodInfo>
Inherited Members
MethodBase<MethodInfo>.MemberInfo(Type)
InjectionMember<MethodInfo, Object[]>.NoMatchFound
InjectionMember<MethodInfo, Object[]>.Selection
InjectionMember<MethodInfo, Object[]>.Name
InjectionMember<MethodInfo, Object[]>.Data
InjectionMember<MethodInfo, Object[]>.MemberInfo(Type)
InjectionMember<MethodInfo, Object[]>.DeclaredMembers(Type)
InjectionMember<MethodInfo, Object[]>.IsInitialized
InjectionMember<MethodInfo, Object[]>.Equals(MethodInfo)
InjectionMember<MethodInfo, Object[]>.Equals(Object)
InjectionMember<MethodInfo, Object[]>.GetHashCode()
InjectionMember<MethodInfo, Object[]>.BuildRequired
InjectionMember<MethodInfo, Object[]>.AddPolicies<TContext, TPolicySet>(Type, Type, String, TPolicySet)
InjectionMember<MethodInfo, Object[]>.SelectMember(Type, InjectionMember)
InjectionMember.AddPolicies<TContext, TPolicySet>(Type, Type, String, TPolicySet)
InjectionMember.BuildRequired
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: Unity.Injection
Assembly: Unity.Abstractions.dll
Syntax
public class InjectionMethod : MethodBase<MethodInfo>, IEquatable<MethodInfo>

Constructors

| Improve this Doc View Source

InjectionMethod(String, Object[])

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

Declaration
public InjectionMethod(string name, params object[] arguments)
Parameters
Type Name Description
String name

Name of the method to call.

Object[] arguments

Parameter values for the method.

Methods

| Improve this Doc View Source

DeclaredMembers(Type)

Declaration
public override IEnumerable<MethodInfo> DeclaredMembers(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
IEnumerable<MethodInfo>
Overrides
Unity.Injection.InjectionMember<System.Reflection.MethodInfo, System.Object[]>.DeclaredMembers(System.Type)
| Improve this Doc View Source

SelectMember(Type, InjectionMember)

Declaration
protected override MethodInfo SelectMember(Type type, InjectionMember _)
Parameters
Type Name Description
Type type
InjectionMember _
Returns
Type Description
MethodInfo
Overrides
Unity.Injection.InjectionMember<System.Reflection.MethodInfo, System.Object[]>.SelectMember(System.Type, Unity.Injection.InjectionMember)
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Implements

System.IEquatable<T>

Extension Methods

InjectionMatching.Matches(Object, Type)
InjectionMatching.MatchesObject(Object, Type)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2020 .NET Foundation and Contributors. All Rights Reserved