Exemplo n.º 1
0
            public void Dispose()
            {
                if (m_sessionCounters != null)
                {
                    m_sessionCounters = null;
                    var timeUsed = m_elapsed;

                    Contract.Assume(m_theCounter != null);

                    m_theCounter.Add(timeUsed);
                }
            }
Exemplo n.º 2
0
            internal GetCacheEntryCountCollector(SessionCounters sessionCounters)
            {
                Contract.Requires(sessionCounters != null);

                m_sessionCounters = sessionCounters;
                m_elapsed         = ElapsedTimer.StartNew();

                m_uploadDisregarded = false;
                m_copyStats         = new CasCopyStats();

                m_endStateCounter = null;
            }
Exemplo n.º 3
0
            public void Dispose()
            {
                if (m_sessionCounters != null)
                {
                    if (m_writeThrough && CopyStats.TransitOccurred)
                    {
                        m_sessionCounters.m_filesTransitedToRemote.Add(CopyStats.FilesTransited, CopyStats.FilesSkipped, CopyStats.FileSizesUnknown, CopyStats.FileTransitsFailed, CopyStats.FilesSizes, m_elapsed);
                    }

                    m_sessionCounters = null;
                }
            }
Exemplo n.º 4
0
            public void Dispose()
            {
                if (m_sessionCounters != null)
                {
                    Contract.Assume(m_finalCounter != null);

                    m_finalCounter.Add(m_elapsed);

                    if (CopyStats.TransitOccurred)
                    {
                        m_sessionCounters.m_filesTransitedToLocal.Add(CopyStats.FilesTransited, CopyStats.FilesSkipped, CopyStats.FileSizesUnknown, CopyStats.FileTransitsFailed, CopyStats.FilesSizes, m_elapsed);
                    }

                    m_sessionCounters = null;
                }
            }