Exemple #1
0
 /// <inheritdoc />
 public Guid Token(FileDescriptor fileDescriptor) => Guid.Parse(new DirectoryInfo(fileDescriptor.directoryName).Name);
Exemple #2
0
 /// <inheritdoc />
 public long CommitNumber(FileDescriptor fileDescriptor) => long.Parse(fileDescriptor.fileName.Split('.').Reverse().Take(2).Last());
 /// <inheritdoc />
 public IDevice Get(FileDescriptor fileInfo)
 {
     return(Devices.CreateLogDevice(Path.Combine(baseName, fileInfo.directoryName, fileInfo.fileName), preallocateFile: preallocateFile, deleteOnClose: deleteOnClose));
 }