本文整理匯總了C#中Microsoft.WindowsAzure.StorageClient.CloudBlob.GetFileLastModifiedUtc方法的典型用法代碼示例。如果您正苦於以下問題:C# CloudBlob.GetFileLastModifiedUtc方法的具體用法?C# CloudBlob.GetFileLastModifiedUtc怎麽用?C# CloudBlob.GetFileLastModifiedUtc使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Microsoft.WindowsAzure.StorageClient.CloudBlob
的用法示例。
在下文中一共展示了CloudBlob.GetFileLastModifiedUtc方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: CreateUpdateModifiedDateTaskRunner
public TaskRunner CreateUpdateModifiedDateTaskRunner(CloudBlob blob, FileInformation fileInfo)
{
this._statistics.UpdatedModifiedDateCount++;
return new SingleActionTaskRunner(() =>
{
_messageBus.Publish(new FileProgressedMessage(fileInfo.FullPath, 0));
_fileSystem.SetLastWriteTimeUtc(fileInfo.FullPath, blob.GetFileLastModifiedUtc());
_messageBus.Publish(new FileProgressedMessage(fileInfo.FullPath, 1));
});
}
示例2: CreateFileNotExistsTaskRunner
public TaskRunner CreateFileNotExistsTaskRunner(CloudBlob blob, string basePath)
{
this._statistics.FileNotExistCount++;
string relativePath = blob.GetRelativeFilePath();
string fullFilePath = this._fileSystem.Combine(basePath, relativePath);
if (blob.Properties.Length > CloudBlobConstants.FileSizeThresholdInBytes)
{
return new DownloadLargeFileTaskRunner(_messageBus, _fileSystem, blob, fullFilePath);
}
else
{
return new SingleActionTaskRunner(() =>
{
_messageBus.Publish(new FileProgressedMessage(fullFilePath, 0));
_fileSystem.EnsureFileDirectory(fullFilePath);
blob.DownloadToFile(fullFilePath);
_fileSystem.SetLastWriteTimeUtc(fullFilePath, blob.GetFileLastModifiedUtc());
_messageBus.Publish(new FileProgressedMessage(fullFilePath, 1));
});
}
}