C# Класс Badges.Services.FileService

Наследование: IFileService
Показать файл Открыть проект

Открытые методы

Метод Описание
Delete ( System.Guid id, bool publicAccess = false ) : void
FileService ( ) : System
Get ( System.Guid id, bool publicAccess = false ) : BlobResult
Save ( System.Web.HttpPostedFileBase file, bool publicAccess = false ) : BlobIdentity

Save a file and return the URL for that file

Save ( Stream originalStream, Stream modifiedStream, string contentType, bool publicAccess = false ) : BlobIdentity

Save two versions of the same file, but return the modified version for consumption

Save ( Stream stream, string contentType, bool publicAccess = false ) : BlobIdentity

Save a file and return the URL for that file

Update ( System.Guid imageId, System.Web.HttpPostedFileBase file, bool publicAccess = false ) : BlobIdentity

We'd like to have a new ID generated after updating, so just delete and save

Приватные методы

Метод Описание
SetContentType ( ICloudBlob blob, string contentType ) : void

Описание методов

Delete() публичный Метод

public Delete ( System.Guid id, bool publicAccess = false ) : void
id System.Guid
publicAccess bool
Результат void

FileService() публичный Метод

public FileService ( ) : System
Результат System

Get() публичный Метод

public Get ( System.Guid id, bool publicAccess = false ) : BlobResult
id System.Guid
publicAccess bool
Результат Badges.Models.Services.BlobResult

Save() публичный Метод

Save a file and return the URL for that file
public Save ( System.Web.HttpPostedFileBase file, bool publicAccess = false ) : BlobIdentity
file System.Web.HttpPostedFileBase
publicAccess bool
Результат Badges.Models.Services.BlobIdentity

Save() публичный Метод

Save two versions of the same file, but return the modified version for consumption
public Save ( Stream originalStream, Stream modifiedStream, string contentType, bool publicAccess = false ) : BlobIdentity
originalStream Stream
modifiedStream Stream
contentType string
publicAccess bool
Результат Badges.Models.Services.BlobIdentity

Save() публичный Метод

Save a file and return the URL for that file
public Save ( Stream stream, string contentType, bool publicAccess = false ) : BlobIdentity
stream Stream
contentType string
publicAccess bool
Результат Badges.Models.Services.BlobIdentity

Update() публичный Метод

We'd like to have a new ID generated after updating, so just delete and save
public Update ( System.Guid imageId, System.Web.HttpPostedFileBase file, bool publicAccess = false ) : BlobIdentity
imageId System.Guid
file System.Web.HttpPostedFileBase
publicAccess bool
Результат Badges.Models.Services.BlobIdentity