summary refs log tree commit diff
path: root/MxApiExtensions/CacheConfiguration.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-08-14 10:36:19 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-08-14 10:36:19 +0200
commit977220895d8127116d0000fa98088b235d4a8801 (patch)
tree09b9f295e9e0e82b8137edbd98afc3aebbab1a56 /MxApiExtensions/CacheConfiguration.cs
downloadMxApiExtensions-977220895d8127116d0000fa98088b235d4a8801.tar.xz
Initial commit
Diffstat (limited to 'MxApiExtensions/CacheConfiguration.cs')
-rw-r--r--MxApiExtensions/CacheConfiguration.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/MxApiExtensions/CacheConfiguration.cs b/MxApiExtensions/CacheConfiguration.cs
new file mode 100644

index 0000000..f1da404 --- /dev/null +++ b/MxApiExtensions/CacheConfiguration.cs
@@ -0,0 +1,9 @@ +namespace MxApiExtensions; + +public class CacheConfiguration { + public CacheConfiguration(IConfiguration config) { + config.GetRequiredSection("MxSyncCache").Bind(this); + } + + public string Homeserver { get; set; } = ""; +}