Exemplo n.º 1
0
        /// <summary>
        /// Implementation of dispose.
        /// </summary>
        /// <param name="disposing">Whether managed or unmanaged resources are disposed.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    if (_webService != null)
                    {
                        Logout();
                        _webService.Dispose();
                        _webService = null;
                    }
                }

                disposedValue = true;
            }
        }