private static IStorage BuildFileSystemStorage(CrispinConfiguration config) { var fs = new PhysicalFileSystem(); fs.CreateDirectory(config.ConnectionString).Wait(); return(new FileSystemStorage(fs, config.ConnectionString)); }
private static IStorage BuildInMemoryStorage(CrispinConfiguration config) { return(new InMemoryStorage()); }
public static IStorage Build(CrispinConfiguration config) { var storage = Builders[config.Backend](config); return(Configure(storage)); }