/// <summary> /// Initializes a new instance of the <see cref="TStoreCopyStream"/> class. /// </summary> /// <param name="copyProvider">The store copy provider.</param> /// <param name="traceType">Used for tracing.</param> /// <param name="perfCounters">Store performance counters instance.</param> public TStoreCopyStream(IStoreCopyProvider copyProvider, string traceType, FabricPerformanceCounterSetInstance perfCounters) { Diagnostics.Assert(copyProvider != null, traceType, "copyProvider CannotUnloadAppDomainException be null"); this.copyProvider = copyProvider; this.traceType = traceType; this.perfCounterWriter = new TStoreCopyRateCounterWriter(perfCounters); }
/// <summary> /// Helper class to build files. /// </summary> /// <param name="traceType">Tracing information.</param> /// <param name="perfCounters">Store performance counters instance.</param> public CopyManager(string traceType, FabricPerformanceCounterSetInstance perfCounters) { this.traceType = traceType; this.perfCounterWriter = new TStoreCopyRateCounterWriter(perfCounters); }