Class ConventionServiceBinding
- Namespace
- Cratis.DependencyInjection
- Assembly
- Cratis.Fundamentals.dll
Represents a convention-based service binding.
public record ConventionServiceBinding : IEquatable<ConventionServiceBinding>
- Inheritance
-
ConventionServiceBinding
- Implements
- Inherited Members
- Extension Methods
Constructors
ConventionServiceBinding(ConventionServiceBinding)
protected ConventionServiceBinding(ConventionServiceBinding original)
Parameters
originalConventionServiceBinding
ConventionServiceBinding(Type, Type, ServiceLifetime)
Represents a convention-based service binding.
public ConventionServiceBinding(Type ServiceType, Type ImplementationType, ServiceLifetime Lifetime)
Parameters
ServiceTypeTypeService type.
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
ServiceType
Service type.
public Type ServiceType { get; init; }
Property Value
Methods
Deconstruct(out Type, out Type, out ServiceLifetime)
public void Deconstruct(out Type ServiceType, out Type ImplementationType, out ServiceLifetime Lifetime)
Parameters
ServiceTypeTypeImplementationTypeTypeLifetimeServiceLifetime
Equals(ConventionServiceBinding?)
public virtual bool Equals(ConventionServiceBinding? other)
Parameters
otherConventionServiceBinding
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 ==(ConventionServiceBinding?, ConventionServiceBinding?)
public static bool operator ==(ConventionServiceBinding? left, ConventionServiceBinding? right)
Parameters
leftConventionServiceBindingrightConventionServiceBinding
Returns
operator !=(ConventionServiceBinding?, ConventionServiceBinding?)
public static bool operator !=(ConventionServiceBinding? left, ConventionServiceBinding? right)
Parameters
leftConventionServiceBindingrightConventionServiceBinding