Example #1
0
        /// <summary>
        /// Performs application-defined tasks associated with freeing,
        /// releasing, or resetting unmanaged resources.
        /// </summary>
        /// <param name="isDisposing">Explicit dispose</param>
        protected virtual void Dispose(bool isDisposing)
        {
            //Se sto facendo la dispose
            if (isDisposing)
            {
                //Rilascio i layers e la sessione
                BasicLayer?.Dispose();
                DataSession?.Dispose();
                //AuthorizationLayer?.Dispose();
            }

            //Chiamo il metodo base
            //base.Dispose(isDisposing);
        }