Esempio n. 1
0
        // Token: 0x06001AC9 RID: 6857 RVA: 0x000732D0 File Offset: 0x000714D0
        internal void SeedToEndpoint(string endpoint, string reason)
        {
            ExTraceGlobals.SeederServerTracer.TraceDebug <Guid, string>((long)this.GetHashCode(), "SeedToEndpoint databaseGuid ({0}), endpoint ({1}).", this.m_databaseGuid, endpoint);
            this.ciSeedStartTimeUtc = ExDateTime.UtcNow;
            long arg = this.PerformCiSeedingAction(delegate
            {
                this.seedingHandle = this.indexSeederSource.SeedToEndPoint(endpoint, reason);
                ExTraceGlobals.SeederServerTracer.TraceDebug <string>((long)this.GetHashCode(), "IndexSeeder.SeedToEndPoint returned handle {0}", this.seedingHandle);
                SeedCiFileReply seedCiFileReply = new SeedCiFileReply(this.m_channel, this.seedingHandle);
                seedCiFileReply.Send();
            });

            ExTraceGlobals.SeederServerTracer.TraceDebug <long>((long)this.GetHashCode(), "SeedToEndpoint finished call after {0}ms.", arg);
        }
Esempio n. 2
0
        // Token: 0x060019CA RID: 6602 RVA: 0x0006BDE4 File Offset: 0x00069FE4
        internal void SeedCatalog(string endpoint, IReplicaSeederCallback callback, string reason)
        {
            ExTraceGlobals.SeederServerTracer.TraceDebug <Guid, string>((long)this.GetHashCode(), "SeedCatalog {0} to {1}.", this.databaseGuid, endpoint);
            this.GetChannel();
            if (this.DoesSourceSupportExtensibleSeedingRequests())
            {
                SeedCiFileRequest2 seedCiFileRequest = new SeedCiFileRequest2(this.channel, this.databaseGuid, endpoint, reason);
                seedCiFileRequest.Send();
            }
            else
            {
                SeedCiFileRequest seedCiFileRequest2 = new SeedCiFileRequest(this.channel, this.databaseGuid, endpoint);
                seedCiFileRequest2.Send();
            }
            ReplayStopwatch replayStopwatch = new ReplayStopwatch();

            replayStopwatch.Start();
            NetworkChannelMessage message         = this.channel.GetMessage();
            SeedCiFileReply       seedCiFileReply = message as SeedCiFileReply;

            if (seedCiFileReply == null)
            {
                this.channel.ThrowUnexpectedMessage(message);
            }
            ExTraceGlobals.SeederServerTracer.TraceDebug <long>((long)this.GetHashCode(), "SeedCiFile response took: {0}ms", replayStopwatch.ElapsedMilliseconds);
            string handle = seedCiFileReply.Handle;

            ExTraceGlobals.SeederServerTracer.TraceDebug <string>((long)this.GetHashCode(), "Get seeding handle: {0}", handle);
            ExTraceGlobals.FaultInjectionTracer.TraceTest(2911251773U);
            this.UpdateProgress(handle, callback);
            replayStopwatch.Stop();
            ExTraceGlobals.SeederServerTracer.TraceDebug((long)this.GetHashCode(), "{0}: SeedCatalog succeeded: {1} for {2} after {3} ms", new object[]
            {
                ExDateTime.Now,
                endpoint,
                this.databaseGuid,
                replayStopwatch.ElapsedMilliseconds
            });
        }