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

original ConventionSelfBinding

ConventionSelfBinding(Type, ServiceLifetime)

Represents a convention-based self binding.

public ConventionSelfBinding(Type ImplementationType, ServiceLifetime Lifetime)

Parameters

ImplementationType Type

Implementation type.

Lifetime ServiceLifetime

Service lifetime.

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

ImplementationType

Implementation type.

public Type ImplementationType { get; init; }

Property Value

Type

Lifetime

Service lifetime.

public ServiceLifetime Lifetime { get; init; }

Property Value

ServiceLifetime

Methods

Deconstruct(out Type, out ServiceLifetime)

public void Deconstruct(out Type ImplementationType, out ServiceLifetime Lifetime)

Parameters

ImplementationType Type
Lifetime ServiceLifetime

Equals(ConventionSelfBinding?)

public virtual bool Equals(ConventionSelfBinding? other)

Parameters

other ConventionSelfBinding

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ConventionSelfBinding?, ConventionSelfBinding?)

public static bool operator ==(ConventionSelfBinding? left, ConventionSelfBinding? right)

Parameters

left ConventionSelfBinding
right ConventionSelfBinding

Returns

bool

operator !=(ConventionSelfBinding?, ConventionSelfBinding?)

public static bool operator !=(ConventionSelfBinding? left, ConventionSelfBinding? right)

Parameters

left ConventionSelfBinding
right ConventionSelfBinding

Returns

bool