Class BlobContainer
Inheritance
object
BlobContainer
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.BlobStoring.dll
Syntax
public class BlobContainer : IBlobContainer
Constructors
BlobContainer(string, BlobContainerConfiguration, IBlobProvider, ICurrentTenant, ICancellationTokenProvider, IBlobNormalizeNamingService, IServiceProvider)
Declaration
public BlobContainer(string containerName, BlobContainerConfiguration configuration, IBlobProvider provider, ICurrentTenant currentTenant, ICancellationTokenProvider cancellationTokenProvider, IBlobNormalizeNamingService blobNormalizeNamingService, IServiceProvider serviceProvider)
Parameters
Properties
BlobNormalizeNamingService
Declaration
protected IBlobNormalizeNamingService BlobNormalizeNamingService { get; }
Property Value
CancellationTokenProvider
Declaration
protected ICancellationTokenProvider CancellationTokenProvider { get; }
Property Value
Configuration
Declaration
protected BlobContainerConfiguration Configuration { get; }
Property Value
ContainerName
Declaration
protected string ContainerName { get; }
Property Value
CurrentTenant
Declaration
protected ICurrentTenant CurrentTenant { get; }
Property Value
Provider
Declaration
protected IBlobProvider Provider { get; }
Property Value
ServiceProvider
Declaration
protected IServiceProvider ServiceProvider { get; }
Property Value
Type |
Description |
System.IServiceProvider |
|
Methods
DeleteAsync(string, CancellationToken)
Declaration
public virtual Task<bool> DeleteAsync(string name, CancellationToken cancellationToken = default)
Parameters
Type |
Name |
Description |
string |
name |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TResult><bool> |
|
ExistsAsync(string, CancellationToken)
Declaration
public virtual Task<bool> ExistsAsync(string name, CancellationToken cancellationToken = default)
Parameters
Type |
Name |
Description |
string |
name |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TResult><bool> |
|
GetAsync(string, CancellationToken)
Declaration
public virtual Task<Stream> GetAsync(string name, CancellationToken cancellationToken = default)
Parameters
Type |
Name |
Description |
string |
name |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TResult><System.IO.Stream> |
|
GetOrNullAsync(string, CancellationToken)
Declaration
public virtual Task<Stream?> GetOrNullAsync(string name, CancellationToken cancellationToken = default)
Parameters
Type |
Name |
Description |
string |
name |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TResult><System.IO.Stream> |
|
GetTenantIdOrNull()
Declaration
protected virtual Guid? GetTenantIdOrNull()
Returns
Type |
Description |
System.Guid? |
|
SaveAsync(string, Stream, bool, CancellationToken)
Declaration
public virtual Task SaveAsync(string name, Stream stream, bool overrideExisting = false, CancellationToken cancellationToken = default)
Parameters
Type |
Name |
Description |
string |
name |
|
System.IO.Stream |
stream |
|
bool |
overrideExisting |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Implements
Extension Methods