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 string RootPath(this StorageCfg cfg, SemVersion version, AccessType access = AccessType.Default) => cfg.RootPath(version.Prerelease, access);