C# 클래스 Badges.Services.FileService

상속: IFileService
파일 보기 프로젝트 열기: ucdavis/Badges

공개 메소드들

메소드 설명
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