예제 #1
0
        public ForumRepository(LanLordzDataContext db, ICacheManager dataCache, ConfigurationRepository config, SecurityRepository security)
        {
            if (db == null)
            {
                throw new ArgumentNullException("db");
            }

            if (dataCache == null)
            {
                throw new ArgumentNullException("dataCache");
            }

            if (security == null)
            {
                throw new ArgumentNullException("security");
            }

            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.db        = db;
            this.dataCache = dataCache;
            this.security  = security;
            this.config    = config;
        }
예제 #2
0
        public PluginRepository(string pluginsDirectory, ICacheManager pluginCache, ConfigurationRepository config)
        {
            if (pluginCache == null)
            {
                throw new ArgumentNullException("pluginCache");
            }

            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.pluginCache      = pluginCache;
            this.pluginsDirectory = pluginsDirectory;
            this.config           = config;
        }
예제 #3
0
        public SkinRepository(string skinsDirectory, ICacheManager skinCache, ConfigurationRepository config)
        {
            if (skinCache == null)
            {
                throw new ArgumentNullException("skinCache");
            }

            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.skinCache      = skinCache;
            this.skinsDirectory = skinsDirectory;
            this.config         = config;
        }
예제 #4
0
        public PollRepository(LanLordzDataContext db, ICacheManager dataCache, ConfigurationRepository config)
        {
            if (db == null)
            {
                throw new ArgumentNullException("db");
            }

            if (dataCache == null)
            {
                throw new ArgumentNullException("dataCache");
            }

            if (config == null)
            {
                throw new ArgumentNullException("config");
            }

            this.db        = db;
            this.dataCache = dataCache;
            this.config    = config;
        }