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

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

                throw;
            }
        }