public MindboxMappingSource(MindboxMappingConfiguration configuration)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            if (!configuration.IsFrozen)
            {
                configuration.Freeze();
            }
            Configuration = configuration;
        }
예제 #2
0
        public MindboxMappingSource(MindboxMappingConfiguration configuration, bool isDatabaseMigrated)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            if (!configuration.IsFrozen)
            {
                configuration.Freeze();
            }
            Configuration      = configuration;
            IsDatabaseMigrated = isDatabaseMigrated;
        }