﻿namespace InfinniPlatform.DocumentStorage
{
    /// <summary>
    /// Настройки хранилища документов MongoDB.
    /// </summary>
    public class MongoDocumentStorageOptions
    {
        public const string SectionName = "mongodbDocumentStorage";

        public static MongoDocumentStorageOptions Default = new MongoDocumentStorageOptions();


        public MongoDocumentStorageOptions()
        {
            ConnectionString = "localhost:27017";
        }

        /// <summary>
        /// Строка подключения.
        /// </summary>
        /// <remarks>
        /// Подробнее см. https://docs.mongodb.com/manual/reference/connection-string..
        /// </remarks>
        public string ConnectionString { get; set; }
    }
}
﻿namespace InfinniPlatform.DocumentStorage
{
    /// <summary>
    /// Настройки хранилища документов MongoDB.
    /// </summary>
    public class MongoDocumentStorageOptions
    {
        public const string SectionName = "mongodbDocumentStorage";

        public static MongoDocumentStorageOptions Default = new MongoDocumentStorageOptions();


        public MongoDocumentStorageOptions()
        {
            ConnectionString = "mongodb://localhost:27017";
        }

        /// <summary>
        /// Строка подключения.
        /// </summary>
        /// <remarks>
        /// Подробнее см. https://docs.mongodb.com/manual/reference/connection-string..
        /// </remarks>
        public string ConnectionString { get; set; }
    }
}
Fix default connection string for MongoDB
Fix default connection string for MongoDB

