SmallInjectorDemo/ServiceOne.cs
Holger Boerchers 1d2fca6ddc updated
2018-08-15 08:46:46 +02:00

33 lines
762 B
C#

using System;
namespace SmallInjectorDemo
{
/// <inheritdoc />
/// <summary>
/// Implementation of <see cref="T:SmallInjectorDemo.IServiceOne" />.
/// </summary>
public class ServiceOne : IServiceOne
{
private readonly int _id;
/// <summary>
/// Creates a new instance of <see cref="ServiceOne"/>.
/// </summary>
public ServiceOne()
{
_id = Helper.NewRandomInteger(10, 99);
Console.WriteLine(Helper.WriteMethodString(_id));
}
/// <inheritdoc />
public override string ToString() => Helper.WriteMethodString(_id);
}
/// <summary>
/// Interface for service one.
/// </summary>
public interface IServiceOne
{
}
}