예제 #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();
        }