// See https://aka.ms/new-console-template for more information
using System.Threading.Channels;
using DIContainer;
var container = new Container();
container.RegisterSingleton();
container.Register();
var calculator = container.Resolve();
Console.WriteLine(calculator.Multiply(2, 3));
Console.WriteLine($"First call to GetHashCode in ICalculator: {container.Resolve().GetHashCode()}");
Console.WriteLine($"Second call to GetHashCode in ICalculator: {container.Resolve().GetHashCode()}");
Console.WriteLine($"First call to GetHashCode in IMultiplier: {container.Resolve().GetHashCode()}");
Console.WriteLine($"Second call to GetHashCode in IMultiplier: {container.Resolve().GetHashCode()}");