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));
            }
        }
コード例 #2
0
        public virtual IBlobContainer Create(string name)
        {
            var configuration = ConfigurationProvider.Get(name);

            return(new BlobContainer(
                       name,
                       configuration,
                       ProviderSelector.Get(name),
                       CurrentTenant,
                       CancellationTokenProvider
                       ));
        }
コード例 #3
0
        public virtual IFileContainer Create(string name)
        {
            var configuration = ConfigurationProvider.Get(name);

            return(new FileContainer(
                       name,
                       configuration,
                       ProviderSelector.Get(name),
                       CurrentTenant,
                       CancellationTokenProvider,
                       FileNormalizeNamingService,
                       ServiceProvider
                       ));
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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
            //);
        }