示例#1
0
        private static void WriteCertFileConfig(string uniacid, ProcessMiniConfig pmc)
        {
            BsonDocument document = new MongoDBTool().GetMongoCollection <BsonDocument>("CompanyModel").Find(Builders <BsonDocument> .Filter.Eq("uniacid", uniacid)).FirstOrDefault();
            var          cfn      = document.GetValue("CertFileName").ToString();

            pmc.SSLCERT_PATH = $"{MainConfig.BaseDir}{MainConfig.CertsDir}/{uniacid}/{cfn}";
        }