/// <summary>
        /// Initializes a new instance of DefaultConnectionManager
        /// </summary>
        public DefaultConnectionManager()
        {
            applicationDataFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Wolpertinger");

            if (!Directory.Exists(applicationDataFolder))
            {
                Directory.CreateDirectory(applicationDataFolder);
            }

            AllowedConnectionCount = -1;

            ConnectionFactory = new DefaultConnectionFactory();

            logger = LoggerService.GetLogger();
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of DefaultConnectionManager
        /// </summary>
        public DefaultConnectionManager()
        {
            applicationDataFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Wolpertinger");

            if (!Directory.Exists(applicationDataFolder))
            {
                Directory.CreateDirectory(applicationDataFolder);
            }

            AllowedConnectionCount = -1;

            ConnectionFactory = new DefaultConnectionFactory();

            logger = LoggerService.GetLogger();
        }