예제 #1
0
            public async ValueTask <IWantStorage> CreateAsync(string configPath, WantStorageOptions options, IObjectStoreFactory objectStoreFactory, IBytesPool bytesPool)
            {
                var result = new WantStorage(configPath, options, objectStoreFactory, bytesPool);
                await result.InitAsync();

                return(result);
            }
예제 #2
0
 internal WantStorage(string configPath, WantStorageOptions options, IObjectStoreFactory objectStoreFactory, IBytesPool bytesPool)
 {
     _configPath = configPath;
     _bytesPool  = bytesPool;
 }