internal static void StartContinuousLogTransmission(NetworkChannel channel, ContinuousLogCopyRequest oldReq) { LogCopyServerContext logCopyServerContext = new LogCopyServerContext(channel, channel.MonitoredDatabase); logCopyServerContext.m_clientIsDownLevel = true; LogCopyServerContext.Tracer.TraceDebug <string, bool>((long)logCopyServerContext.GetHashCode(), "Passive({0}) is downlevel {1}}", channel.PartnerNodeName, logCopyServerContext.m_clientIsDownLevel); ContinuousLogCopyRequest2 initialRequest = LogCopyServerContext.UpgradeRequest(channel, oldReq); logCopyServerContext.InitContinuousLogTransmission(initialRequest); }
private static ContinuousLogCopyRequest2 UpgradeRequest(NetworkChannel channel, ContinuousLogCopyRequest oldReq) { ContinuousLogCopyRequest2.Flags flagsUsed = (ContinuousLogCopyRequest2.Flags)oldReq.FlagsUsed; return(new ContinuousLogCopyRequest2(null, channel, oldReq.DatabaseGuid, oldReq.FirstGeneration, flagsUsed) { LastGeneration = oldReq.LastGeneration, ClientNodeName = channel.PartnerNodeName }); }