summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/ConfigModels
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-22 00:44:13 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-22 00:44:13 -0500
commit082f285bc7ce156ad0750bb48d46ed65a2e4aedb (patch)
tree7dc63890caf6eee699590a67013d634e213fabe3 /src/SMAPI.Web/Framework/ConfigModels
parentc1b15fb3725661ebfd8e03cec08343ae49e5d6da (diff)
downloadSMAPI-082f285bc7ce156ad0750bb48d46ed65a2e4aedb.tar.gz
SMAPI-082f285bc7ce156ad0750bb48d46ed65a2e4aedb.tar.bz2
SMAPI-082f285bc7ce156ad0750bb48d46ed65a2e4aedb.zip
streamline local environments, update technical docs & privacy page
Diffstat (limited to 'src/SMAPI.Web/Framework/ConfigModels')
-rw-r--r--src/SMAPI.Web/Framework/ConfigModels/MongoDbConfig.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/ConfigModels/MongoDbConfig.cs b/src/SMAPI.Web/Framework/ConfigModels/MongoDbConfig.cs
index 3c508300..e2e18477 100644
--- a/src/SMAPI.Web/Framework/ConfigModels/MongoDbConfig.cs
+++ b/src/SMAPI.Web/Framework/ConfigModels/MongoDbConfig.cs
@@ -24,6 +24,12 @@ namespace StardewModdingAPI.Web.Framework.ConfigModels
/*********
** Public method
*********/
+ /// <summary>Get whether a MongoDB instance is configured.</summary>
+ public bool IsConfigured()
+ {
+ return !string.IsNullOrWhiteSpace(this.Host);
+ }
+
/// <summary>Get the MongoDB connection string.</summary>
public string GetConnectionString()
{