Class ResolverOverride
Inheritance
ResolverOverride
Assembly: Unity.Abstractions.dll
Syntax
public abstract class ResolverOverride
Constructors
|
Improve this Doc
View Source
ResolverOverride(String)
Declaration
protected ResolverOverride(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
|
Improve this Doc
View Source
ResolverOverride(Type, Type, String)
Declaration
protected ResolverOverride(Type target, Type type, string name)
Parameters
Fields
|
Improve this Doc
View Source
Name
Declaration
protected readonly string Name
Field Value
|
Improve this Doc
View Source
Target
Declaration
Field Value
|
Improve this Doc
View Source
Type
Declaration
protected readonly Type Type
Field Value
Methods
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
GetResolver<TContext>(Type)
Declaration
public virtual ResolveDelegate<TContext> GetResolver<TContext>(Type type)
where TContext : IResolveContext
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Type Parameters
Name |
Description |
TContext |
|
|
Improve this Doc
View Source
OnType(Type)
Wrap this resolver in one that verifies the type of the object being built.
This allows you to narrow any override down to a specific type easily.
Declaration
public ResolverOverride OnType(Type targetType)
Parameters
Type |
Name |
Description |
Type |
targetType |
Type to constrain the override to.
|
Returns
|
Improve this Doc
View Source
OnType<T>()
Wrap this resolver in one that verifies the type of the object being built.
This allows you to narrow any override down to a specific type easily.
Declaration
public ResolverOverride OnType<T>()
Returns
Type Parameters
Name |
Description |
T |
Type to constrain the override to.
|
Operators
|
Improve this Doc
View Source
Equality(ResolverOverride, ResolverOverride)
Declaration
public static bool operator ==(ResolverOverride left, ResolverOverride right)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(ResolverOverride, ResolverOverride)
Declaration
public static bool operator !=(ResolverOverride left, ResolverOverride right)
Parameters
Returns
Extension Methods