Exemplo n.º 1
0
 public static IDatabase <byte[], byte[]> UseIODatabase
 (
     [CanBeNull] this DatabaseBuilder builder,
     StringDBVersion version,
     [NotNull] string file
 )
 => builder.UseIODatabase(version, file, out _);
Exemplo n.º 2
0
 public static IDatabase <byte[], byte[]> UseIODatabase
 (
     [CanBeNull] this DatabaseBuilder builder,
     [NotNull] Func <DatabaseIODeviceBuilder, IDatabaseIODevice> databaseIODevice,
     [NotNull] out IOptimalTokenSource optimalTokenSource
 )
 => builder.UseIODatabase(databaseIODevice(new DatabaseIODeviceBuilder()), out optimalTokenSource);
Exemplo n.º 3
0
 public static IDatabase <byte[], byte[]> UseIODatabase
 (
     [CanBeNull] this DatabaseBuilder builder,
     StringDBVersions version,
     [NotNull] string file
 )
 => builder.UseIODatabase(databaseIODeviceBuilder => databaseIODeviceBuilder.UseStringDB(version, file));
Exemplo n.º 4
0
 public static IDatabase <byte[], byte[]> UseIODatabase
 (
     [CanBeNull] this DatabaseBuilder builder,
     StringDBVersion version,
     [NotNull] string file,
     [NotNull] out IOptimalTokenSource optimalTokenSource
 )
 => builder.UseIODatabase(databaseIODeviceBuilder => databaseIODeviceBuilder.UseStringDB(version, file), out optimalTokenSource);
Exemplo n.º 5
0
 public static IDatabase <byte[], byte[]> UseIODatabase
 (
     [CanBeNull] this DatabaseBuilder builder,
     [NotNull] Func <DatabaseIODeviceBuilder, IDatabaseIODevice> databaseIODevice
 )
 => builder.UseIODatabase(databaseIODevice, out _);