コード例 #1
0
ファイル: ForumRepository.cs プロジェクト: otac0n/lanlordz
        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
ファイル: PluginRepository.cs プロジェクト: otac0n/lanlordz
        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
ファイル: SkinRepository.cs プロジェクト: otac0n/lanlordz
        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
ファイル: PollRepository.cs プロジェクト: otac0n/lanlordz
        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;
        }