Esempio n. 1
0
 public string Index()
 {
     return($"[IDiSample]{Environment.NewLine}" +
            $"Id: {_diSample.Id}{Environment.NewLine}" +
            $"HashCode: {_diSample.GetHashCode()}{Environment.NewLine}" +
            $"Type: {_diSample.GetType()}");
 }
Esempio n. 2
0
        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());
        }