示例#1
0
        private static IStorage BuildFileSystemStorage(CrispinConfiguration config)
        {
            var fs = new PhysicalFileSystem();

            fs.CreateDirectory(config.ConnectionString).Wait();

            return(new FileSystemStorage(fs, config.ConnectionString));
        }
示例#2
0
 private static IStorage BuildInMemoryStorage(CrispinConfiguration config)
 {
     return(new InMemoryStorage());
 }
示例#3
0
        public static IStorage Build(CrispinConfiguration config)
        {
            var storage = Builders[config.Backend](config);

            return(Configure(storage));
        }