Replace repo config with generic remote config
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using System.Text.Json.Nodes;
|
||||
|
||||
namespace MareSynchronos.MareConfiguration.Configurations;
|
||||
|
||||
public class RemoteConfigCache : IMareConfiguration
|
||||
{
|
||||
public int Version { get; set; } = 0;
|
||||
public ulong Timestamp { get; set; } = 0;
|
||||
public string Origin { get; set; } = string.Empty;
|
||||
public DateTimeOffset? LastModified { get; set; } = null;
|
||||
public string ETag { get; set; } = string.Empty;
|
||||
public JsonObject Configuration { get; set; } = new();
|
||||
}
|
||||
11
MareSynchronos/MareConfiguration/RemoteConfigCacheService.cs
Normal file
11
MareSynchronos/MareConfiguration/RemoteConfigCacheService.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using MareSynchronos.MareConfiguration.Configurations;
|
||||
|
||||
namespace MareSynchronos.MareConfiguration;
|
||||
|
||||
public class RemoteConfigCacheService : ConfigurationServiceBase<RemoteConfigCache>
|
||||
{
|
||||
public const string ConfigName = "remotecache.json";
|
||||
|
||||
public RemoteConfigCacheService(string configDir) : base(configDir) { }
|
||||
public override string ConfigurationName => ConfigName;
|
||||
}
|
||||
Reference in New Issue
Block a user