Class ConventionSelfBinding
- Namespace
- Cratis.DependencyInjection
- Assembly
- Cratis.Fundamentals.dll
Represents a convention-based self binding.
public record ConventionSelfBinding : IEquatable<ConventionSelfBinding>
- Inheritance
-
ConventionSelfBinding
- Implements
- Inherited Members
- Extension Methods
Constructors
ConventionSelfBinding(ConventionSelfBinding)
protected ConventionSelfBinding(ConventionSelfBinding original)
Parameters
originalConventionSelfBinding
ConventionSelfBinding(Type, ServiceLifetime)
Represents a convention-based self binding.
public ConventionSelfBinding(Type ImplementationType, ServiceLifetime Lifetime)
Parameters
ImplementationTypeTypeImplementation type.
LifetimeServiceLifetimeService lifetime.
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
ImplementationType
Implementation type.
public Type ImplementationType { get; init; }
Property Value
Lifetime
Service lifetime.
public ServiceLifetime Lifetime { get; init; }
Property Value
Methods
Deconstruct(out Type, out ServiceLifetime)
public void Deconstruct(out Type ImplementationType, out ServiceLifetime Lifetime)
Parameters
ImplementationTypeTypeLifetimeServiceLifetime
Equals(ConventionSelfBinding?)
public virtual bool Equals(ConventionSelfBinding? other)
Parameters
otherConventionSelfBinding
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ConventionSelfBinding?, ConventionSelfBinding?)
public static bool operator ==(ConventionSelfBinding? left, ConventionSelfBinding? right)
Parameters
leftConventionSelfBindingrightConventionSelfBinding
Returns
operator !=(ConventionSelfBinding?, ConventionSelfBinding?)
public static bool operator !=(ConventionSelfBinding? left, ConventionSelfBinding? right)
Parameters
leftConventionSelfBindingrightConventionSelfBinding