summary refs log tree commit diff
path: root/MxApiExtensions/CacheConfiguration.cs
diff options
context:
space:
mode:
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; } = ""; +}