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