/// <summary>
        /// Releases unmanaged resources and optionally releases managed resources.
        /// </summary>
        /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && _securityManager != null)
            {
                _securityManager.Dispose();
                _securityManager = null;
            }

            base.Dispose(disposing);
        }