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