add horizontal file sharding based on filename matches
This commit is contained in:
		| @@ -0,0 +1,17 @@ | ||||
| using System.Text.Json.Serialization; | ||||
| using System.Text.RegularExpressions; | ||||
|  | ||||
| namespace MareSynchronosShared.Utils; | ||||
|  | ||||
| public class CdnShardConfiguration | ||||
| { | ||||
|     public string FileMatch { get; set; } | ||||
|     [JsonIgnore] | ||||
|     public Regex FileMatchRegex => new Regex(FileMatch); | ||||
|     public Uri CdnFullUrl { get; set; } | ||||
|  | ||||
|     public override string ToString() | ||||
|     { | ||||
|         return CdnFullUrl.ToString() + " == " + FileMatch; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 rootdarkarchon
					rootdarkarchon