diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-12-22 00:44:13 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-12-22 00:44:13 -0500 |
commit | 082f285bc7ce156ad0750bb48d46ed65a2e4aedb (patch) | |
tree | 7dc63890caf6eee699590a67013d634e213fabe3 /src/SMAPI.Web/Framework/ConfigModels | |
parent | c1b15fb3725661ebfd8e03cec08343ae49e5d6da (diff) | |
download | SMAPI-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.cs | 6 |
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() { |