Update baserom, add creation timestamp to seed fetch results
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
namespace ALttPRandomizer.Azure {
|
||||
using global::Azure.Storage.Blobs;
|
||||
using global::Azure.Storage.Blobs.Models;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -62,5 +63,11 @@
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
public async Task<DateTimeOffset> GetFileCreation(string filename) {
|
||||
var blob = this.BlobClient.GetBlobClient(filename);
|
||||
var blobProperties = await blob.GetPropertiesAsync();
|
||||
return blobProperties.Value.CreatedOn;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user