Exemplo n.º 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);
            }
Exemplo n.º 2
0
 internal WantStorage(string configPath, WantStorageOptions options, IObjectStoreFactory objectStoreFactory, IBytesPool bytesPool)
 {
     _configPath = configPath;
     _bytesPool  = bytesPool;
 }