コード例 #1
0
        public MongoProjectionRepository(MongoClient client, string database, MongoEventStoreSetttings setttings)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }
            if (database == null)
            {
                throw new ArgumentNullException(nameof(database));
            }
            if (setttings == null)
            {
                throw new ArgumentNullException(nameof(setttings));
            }

            setttings.Validate();

            Database  = database;
            Setttings = setttings;
            Client    = client;
        }
コード例 #2
0
 public MongoProjectionRepository(MongoClient client, string database, MongoEventStoreSetttings setttings) : base(client, database, setttings)
 {
 }