public override IBlobContainer Create(string name) { var configuration = ConfigurationProvider.Get(name); var blobProvider = ProviderSelector.Get(name); if (blobProvider.GetType().IsAssignableTo <ISpeedwaveBlobProvider>()) { return(new SpeedwaveBlobContainer( name, configuration, (ISpeedwaveBlobProvider)blobProvider, CurrentTenant, CancellationTokenProvider, ServiceProvider)); } else { return(new BlobContainer( name, configuration, blobProvider, CurrentTenant, CancellationTokenProvider, ServiceProvider)); } }
public virtual IBlobContainer Create(string name) { var configuration = ConfigurationProvider.Get(name); return(new BlobContainer( name, configuration, ProviderSelector.Get(name), CurrentTenant, CancellationTokenProvider )); }
public virtual IFileContainer Create(string name) { var configuration = ConfigurationProvider.Get(name); return(new FileContainer( name, configuration, ProviderSelector.Get(name), CurrentTenant, CancellationTokenProvider, FileNormalizeNamingService, ServiceProvider )); }
public override IBlobContainer Create(string name) { var configuration = ConfigurationProvider.Get(name); DigniteAbpBlobContainer result = null; var provider = ProviderSelector.Get(name); result = new DigniteAbpBlobContainer( name, configuration, provider, CurrentTenant, CancellationTokenProvider, BlobNormalizeNamingService, ServiceProvider ); return(result); }
public virtual IFileContainer Create(string name) { var configuration = ConfigurationProvider.Get(name); var fileProvider = ProviderSelector.Get(name); var fileContainer = ActivatorUtilities.CreateInstance <FileContainer>( ServiceProvider, name, configuration, fileProvider); return(fileContainer); //return new FileContainer( // name, // configuration, // ProviderSelector.Get(name), // CurrentTenant, // CancellationTokenProvider, // FileNormalizeNamingService, // ServiceProvider //); }