コード例 #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposed)
            {
                if (disposing)
                {
                    if (adalListener != null)
                    {
                        adalListener.Dispose();
                        adalListener = null;
                    }

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

                disposed = true;
            }
        }
コード例 #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposed)
            {
                if (disposing)
                {
                    if (adalListener != null)
                    {
                        try
                        {
                            adalListener.Dispose();
                        }
                        catch
                        {
                            // ignore
                        }

                        adalListener = null;
                    }

                    if (AdalEventSource != null)
                    {
                        try
                        {
                            AdalEventSource.Dispose();
                        }
                        catch
                        {
                            // ignore
                        }
                    }
                }

                disposed = true;
            }
        }