/// <summary>
        /// Creates an ambient server with parameters initialized to defaults.
        /// </summary>
        /// <param name="configuration">The server configuration.</param>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="configuration"/> is null.</exception>
        public AmbienceServer(AmbienceServerConfiguration configuration)
        {
            if (configuration == null)
                throw new ArgumentNullException("configuration");

            this.configuration = configuration;
            databasePath = Path.GetFullPath(configuration.DatabasePath);
        }
Exemple #2
0
        /// <summary>
        /// Creates an ambient server with parameters initialized to defaults.
        /// </summary>
        /// <param name="configuration">The server configuration.</param>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="configuration"/> is null.</exception>
        public AmbienceServer(AmbienceServerConfiguration configuration)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            this.configuration = configuration;
            databasePath       = Path.GetFullPath(configuration.DatabasePath);
        }