Exemplo n.º 1
0
        public virtual void Cleanup()
        {
            if (_RuntimeAuthorization != null)
            {
                _RuntimeAuthorization.Dispose();
                _RuntimeAuthorization = null;
            }

            if (ComReleaser != null)
            {
                ComReleaser.Dispose();
                ComReleaser = null;
            }

            Workspace = null;
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Releases unmanaged and - optionally - managed resources
        /// </summary>
        /// <param name="disposing">
        ///     <c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only
        ///     unmanaged resources.
        /// </param>
        private void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_MinerRuntime != null)
                {
                    _MinerRuntime.Dispose();
                }

                if (_EsriRuntime != null)
                {
                    _EsriRuntime.Dispose();
                }
            }
        }