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