Beispiel #1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing && _userManager != null)
            {
                _userManager.Dispose();
                _userManager = null;
            }

            if (disposing && helper != null)
            {
                helper.Dispose();
                helper = null;
            }

            base.Dispose(disposing);
        }
Beispiel #2
0
        protected override void Dispose(bool disposing)
        {
            //Dispose of adminHelper
            if (disposing && helper != null)
            {
                helper.Dispose();
                helper = null;
            }

            //Dispose of db
            if (disposing && db != null)
            {
                db.Dispose();
                db = null;
            }

            base.Dispose(disposing);
        }