public LogShipContextWrapper(ITruncationConfiguration config, TimeSpan timeout, ManualOneShotEvent cancelEvent) : base("LogShipContextWrapper", cancelEvent) { this.m_config = config; this.m_timeout = timeout; }
public LogTruncater(IPerfmonCounters perfmonCounters, IFileChecker fileChecker, ISetBroken setBroken, IReplayConfiguration configuration, ITruncationConfiguration truncationConfig, IReplicaInstanceContext replicaInstanceContext, ManualOneShotEvent shuttingDownEvent) : base(TimeSpan.Zero, TimeSpan.FromMilliseconds((double)RegistryParameters.LogTruncationTimerDuration), "LogTruncater") { this.m_perfmonCounters = perfmonCounters; this.m_fileChecker = fileChecker; this.m_configuration = configuration; this.m_truncationConfig = truncationConfig; this.m_replicaInstanceContext = replicaInstanceContext; this.m_shuttingDownEvent = shuttingDownEvent; this.m_localInspectorGen = this.m_configuration.ReplayState.InspectorGenerationNumber; this.m_localReplayerGen = this.m_configuration.ReplayState.ReplayGenerationNumber; this.m_perfmonCounters.TruncatedGenerationNumber = this.m_genTruncatedLocally; LogTruncater.Tracer.TraceDebug <IReplayConfiguration>((long)this.GetHashCode(), "LogTruncater initialized - configuration = {0}", configuration); }