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

original ConventionServiceBinding

ConventionServiceBinding(Type, Type, ServiceLifetime)

Represents a convention-based service binding.

public ConventionServiceBinding(Type ServiceType, Type ImplementationType, ServiceLifetime Lifetime)

Parameters

ServiceType Type

Service type.

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

ServiceType

Service type.

public Type ServiceType { get; init; }

Property Value

Type

Methods

Deconstruct(out Type, out Type, out ServiceLifetime)

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

Parameters

ServiceType Type
ImplementationType Type
Lifetime ServiceLifetime

Equals(ConventionServiceBinding?)

public virtual bool Equals(ConventionServiceBinding? other)

Parameters

other ConventionServiceBinding

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 ==(ConventionServiceBinding?, ConventionServiceBinding?)

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

Parameters

left ConventionServiceBinding
right ConventionServiceBinding

Returns

bool

operator !=(ConventionServiceBinding?, ConventionServiceBinding?)

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

Parameters

left ConventionServiceBinding
right ConventionServiceBinding

Returns

bool