コード例 #1
0
        public MongoRawStore(MongoStoreOptions options)
        {
            if (options == null || !options.IsValid())
            {
                throw new Exception("Invalid options");
            }

            _options = options;

            Connect();
        }
コード例 #2
0
        public MongoPersistence(MongoStoreOptions options)
        {
            if (options == null || !options.IsValid())
            {
                throw new Exception("Invalid options");
            }

            _options    = options;
            _serializer = options.Serializer ?? new TypeSystemSerializer();
            Connect();
        }