using System; namespace SmallInjectorDemo { /// /// Implementation of . /// public class ServiceOne : IServiceOne { private const string MyName = nameof(ServiceOne); private readonly Guid _guid; /// /// Creates a new instance of . /// public ServiceOne() { _guid = Guid.NewGuid(); Console.WriteLine(MyName + ".ctor\t\tId: " + _guid); } /// public override string ToString() => MyName + ".ToString()\tId: " + _guid; } /// /// Interface for service one. /// public interface IServiceOne { } }