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