Exemplo n.º 1
0
 public FileRecordDB(IFileIO io, IGuidSource guids, ITimeStampSource timeStamps, string root)
 {
     IO         = io;
     Guids      = guids;
     TimeStamps = timeStamps;
     Root       = root;
 }
Exemplo n.º 2
0
 public FileIO(
     TextWriter?consoleLogInfo        = null,
     TextWriter?consoleLogWarn        = null,
     TextWriter?consoleLogError       = null,
     string?logPath                   = null,
     ITimeStampSource?timeStampSource = null
     )
 {
     ConsoleLogInfo  = consoleLogInfo ?? Console.Out;
     ConsoleLogWarn  = consoleLogWarn ?? consoleLogInfo ?? Console.Out;
     ConsoleLogError = consoleLogError ?? consoleLogWarn ?? consoleLogInfo ?? Console.Error;
     LogPath         = logPath;
     TimeStamps      = timeStampSource ?? new TimeStampSource();
 }