// Token: 0x06001BB5 RID: 7093 RVA: 0x000763D8 File Offset: 0x000745D8 private void CreateCopierAndInspector() { string text = "." + this.m_configuration.LogExtension; if (this.m_logCopier == null) { long fromNumber = ReplicaInstance.CopyGeneration(this.m_configuration, this.m_fileState, this.m_setGeneration, null); this.m_initialNetworkPath = NetworkManager.ChooseNetworkPath(this.m_configuration.SourceMachine, null, NetworkPath.ConnectionPurpose.LogCopy); this.m_logCopier = new LogCopier(this.m_perfmonCounters, this.m_configuration.LogFilePrefix, fromNumber, text, this.m_configuration.LogInspectorPath, this.m_configuration.DestinationLogPath, this.m_configuration, this.m_fileChecker.FileState, this.m_setBrokenForCopier, this.m_setBrokenForCopier, this.m_setGeneration, this.m_initialNetworkPath, true); this.m_fCreatedCopier = true; } this.m_logCopier.SetReportingCallbacks(this.m_setBrokenForCopier, this.m_setBrokenForCopier); if (this.m_logInspector == null) { this.m_logInspector = new LogInspector(this.m_perfmonCounters, this.m_configuration, this.m_configuration.LogFilePrefix, text, this.m_configuration.DestinationLogPath, this.m_fileState, null, this.m_setBrokenForInspector, this.m_setGeneration, this.m_setBrokenForInspector, this.m_initialNetworkPath, true); this.m_fCreatedInspector = true; } this.m_logInspector.UseSuspendLock = false; this.m_logInspector.SetReportingCallback(this.m_setBrokenForInspector); this.m_logInspector.SetLogShipACLLTimeoutMs(); if (this.m_logReplayer != null) { this.m_logReplayer.SetReportingCallback(this.m_setBrokenForReplayer); } }
// Token: 0x06000B95 RID: 2965 RVA: 0x00033860 File Offset: 0x00031A60 private void GetChannel() { if (this.m_channel == null) { NetworkPath netPath = NetworkManager.ChooseNetworkPath(this.m_serverName, null, NetworkPath.ConnectionPurpose.Seeding); this.m_channel = NetworkChannel.Connect(netPath, TcpChannel.GetDefaultTimeoutInMs(), false); } }
// Token: 0x06002242 RID: 8770 RVA: 0x0009FAAC File Offset: 0x0009DCAC public NetworkChannel OpenChannel() { string networkName = null; NetworkPath.ConnectionPurpose purpose = NetworkPath.ConnectionPurpose.LogCopy; NetworkPath netPath; if (this.m_initialNetworkPath == null) { netPath = NetworkManager.ChooseNetworkPath(this.m_sourceAddr, networkName, purpose); } else { netPath = this.m_initialNetworkPath; this.m_initialNetworkPath = null; } this.m_channel = NetworkChannel.Connect(netPath, base.DefaultTimeoutInMs, false); return(this.m_channel); }
// Token: 0x060019CD RID: 6605 RVA: 0x0006C134 File Offset: 0x0006A334 private void GetChannel() { lock (this) { if (this.isAborted) { throw new SeederOperationAbortedException(); } if (this.channel == null) { NetworkPath networkPath = NetworkManager.ChooseNetworkPath(this.sourceServerFqdn, this.NetworkName, NetworkPath.ConnectionPurpose.Seeding); if (this.CompressOverride != null || this.EncryptOverride != null || !string.IsNullOrEmpty(this.NetworkName)) { networkPath.Compress = (this.CompressOverride ?? networkPath.Compress); networkPath.Encrypt = (this.EncryptOverride ?? networkPath.Encrypt); networkPath.NetworkChoiceIsMandatory = true; } this.channel = NetworkChannel.Connect(networkPath, TcpChannel.GetDefaultTimeoutInMs(), false); } } }