ALFA.Shared.AzureFileStoreFile.ReadIfModifiedSince C# (CSharp) Метод

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
        public void ReadIfModifiedSince(Stream Stream, DateTimeOffset Time)
        {
            try
            {
                Blob.DownloadToStream(Stream, AccessCondition.GenerateIfModifiedSinceCondition(Time));
            }
            catch (StorageException Ex)
            {
                if (Ex.RequestInformation.HttpStatusMessage == AzureFileStoreStatusCodes.ConditionNotMet)
                    throw new FileStoreConditionNotMetException(Ex);

                throw;
            }
        }