示例#1
0
        public GlobalBatch(GlobalCache cache, GlobalDatabase database)
        {
            if (cache == null)
                throw new ArgumentNullException("cache");
            if (database == null)
                throw new ArgumentNullException("database");

            this.cache = cache;
            this.database = database;
        }
示例#2
0
        public GlobalBatch(GlobalCache cache, GlobalDatabase database)
        {
            if (cache == null)
            {
                throw new ArgumentNullException("cache");
            }
            if (database == null)
            {
                throw new ArgumentNullException("database");
            }

            this.cache    = cache;
            this.database = database;
        }