public static Task <ILogicalLog> CreateFileLogicalLog( string logFileName, LogWriteFaultInjectionParameters logWriteFaultInjectionParameters) { var created = new FileLogicalLog(logFileName, logWriteFaultInjectionParameters); created.Open(); return(Task.FromResult(created as ILogicalLog)); }
private FileLogicalLog( string logFileName, LogWriteFaultInjectionParameters logWriteFaultInjectionParameters) { this.logFileName = logFileName; this.logWriteFaultInjectionParameters = logWriteFaultInjectionParameters; this.logFileStream = null; this.logFileHandle = null; this.isDisposed = false; this.randomGenerator = new Random(Environment.TickCount); }
internal FileLogManager( string baseLogFileAlias, IncomingBytesRateCounterWriter incomingBytesRateCounter, LogFlushBytesRateCounterWriter logFlushBytesRateCounter, AvgBytesPerFlushCounterWriter bytesPerFlushCounterWriter, AvgFlushLatencyCounterWriter avgFlushLatencyCounterWriter, AvgSerializationLatencyCounterWriter avgSerializationLatencyCounterWriter, LogWriteFaultInjectionParameters logWriteFaultInjectionParameters) : base( baseLogFileAlias, incomingBytesRateCounter, logFlushBytesRateCounter, bytesPerFlushCounterWriter, avgFlushLatencyCounterWriter, avgSerializationLatencyCounterWriter) { this.logWriteFaultInjectionParameters = logWriteFaultInjectionParameters; }