C# 클래스 ALFA.Shared.AzureFileStoreFile

This class encapsulates an Azure backend implementation of the FileStoreFile abstraction.
상속: FileStoreFile
파일 보기 프로젝트 열기: ALandFarAway/ALFA-Base-Resources

공개 메소드들

메소드 설명
Delete ( ) : void

Delete the file.

Exists ( ) : bool

Returns true if the file exists.

FetchAttributes ( ) : void

Load properties and metadata.

Read ( Stream Stream ) : void

Read the entire contents of the file into the given Stream.

ReadIfModifiedSince ( Stream Stream, DateTimeOffset Time ) : void

Read the entire contents of the file into the given Stream if it is not modified since a given time.

SetMetadata ( ) : void

Set new metadata for the file.

Write ( Stream Stream ) : void

Replace the contents of the file with the given Stream.

WriteIfNotModifiedSince ( Stream Stream, DateTimeOffset Time ) : void

Replace the contents of the file with the given Stream if the stored file has not been modified since a given time.

비공개 메소드들

메소드 설명
AzureFileStoreFile ( Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob Blob ) : System

Instantiate a new AzureFileStoreFile from an Azure blob.

메소드 상세

Delete() 공개 메소드

Delete the file.
public Delete ( ) : void
리턴 void

Exists() 공개 메소드

Returns true if the file exists.
public Exists ( ) : bool
리턴 bool

FetchAttributes() 공개 메소드

Load properties and metadata.
public FetchAttributes ( ) : void
리턴 void

Read() 공개 메소드

Read the entire contents of the file into the given Stream.
public Read ( Stream Stream ) : void
Stream Stream Supplies the Stream to read the entire /// contents of the file into.
리턴 void

ReadIfModifiedSince() 공개 메소드

Read the entire contents of the file into the given Stream if it is not modified since a given time.
public ReadIfModifiedSince ( Stream Stream, DateTimeOffset Time ) : void
Stream Stream Supplies the Stream to read the entire /// contents of the file into.
Time DateTimeOffset Supplies the modified since limit.
리턴 void

SetMetadata() 공개 메소드

Set new metadata for the file.
public SetMetadata ( ) : void
리턴 void

Write() 공개 메소드

Replace the contents of the file with the given Stream.
public Write ( Stream Stream ) : void
Stream Stream Supplies the Stream to write into the file. /// The original contents of the file are replaced.
리턴 void

WriteIfNotModifiedSince() 공개 메소드

Replace the contents of the file with the given Stream if the stored file has not been modified since a given time.
public WriteIfNotModifiedSince ( Stream Stream, DateTimeOffset Time ) : void
Stream Stream Supplies the Stream to write into the file. /// The original contents of the file are replaced.
Time DateTimeOffset Supplies the modified time cutoff.
리턴 void