Beispiel #1
0
        public AzureBlobFileStore Store(StringPath path = null, StoreTier tier = Premium, SemVersion version = null)
        {
            var p = new StringPath(Cfg.RootPath(version ?? Version));

            if (path != null)
            {
                p = p.Add(path);
            }
            var store = new AzureBlobFileStore(tier switch {
                StoreTier.Backup => Cfg.BackupCs,
                Premium => Cfg.PremiumDataStorageCs,
                _ => Cfg.DataStorageCs
            }, p, Log);
 public static StringPath FilePath(StringPath path, string ts, string version = null) =>
 path.Add(FileName(ts, version));
Beispiel #3
0
        async Task SavePeriods(StringPath path, IDictionary <string, JObject> uniqPeriods, ILogger log)
        {
            var stream = await uniqPeriods.Values.ToJsonlGzStream();

            await Store.Save(path.Add("periods.jsonl.gz"), stream, log);
        }