RegistrationDiagnosticsInfo
Details about a registration.
using System;
namespace Stashbox.Registration
{
public readonly struct RegistrationDiagnosticsInfo
{
public readonly Type ServiceType;
public readonly Type ImplementationType;
public readonly object Name;
public RegistrationDiagnosticsInfo(Type serviceType, Type implementationType, object name)
{
this = default(RegistrationDiagnosticsInfo);
ServiceType = serviceType;
ImplementationType = implementationType;
Name = name;
}
public override string ToString()
{
return $"{ServiceType.GetDiagnosticsView()}""{ImplementationType.GetDiagnosticsView()}""{Name}";
}
}
}