コード例 #1
0
ファイル: RepositoryManager.cs プロジェクト: knsh14/Unity
        private void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }
            disposed = true;

            if (disposing)
            {
                Stop();
                watcher.Dispose();
            }
        }
コード例 #2
0
        private void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }
            disposed = true;

            if (disposing)
            {
                CurrentBranchUpdated        = null;
                GitStatusUpdated            = null;
                GitAheadBehindStatusUpdated = null;
                GitLogUpdated         = null;
                GitLocksUpdated       = null;
                LocalBranchesUpdated  = null;
                RemoteBranchesUpdated = null;
                DataNeedsRefreshing   = null;
                Stop();
                watcher.Dispose();
            }
        }