public string Index() { return($"[IDiSample]{Environment.NewLine}" + $"Id: {_diSample.Id}{Environment.NewLine}" + $"HashCode: {_diSample.GetHashCode()}{Environment.NewLine}" + $"Type: {_diSample.GetType()}"); }
public IActionResult Index() { ViewBag.TransientId = _diTransient.Id; ViewBag.TransientHashCode = _diTransient.GetHashCode(); ViewBag.ScopedId = _diScoped.Id; ViewBag.ScopedHashCode = _diScoped.GetHashCode(); ViewBag.SingletonId = _diSingleton.Id; ViewBag.SingletonHashCode = _diSingleton.GetHashCode(); return(View()); }