public MongoRawStore(MongoStoreOptions options) { if (options == null || !options.IsValid()) { throw new Exception("Invalid options"); } _options = options; Connect(); }
public MongoPersistence(MongoStoreOptions options) { if (options == null || !options.IsValid()) { throw new Exception("Invalid options"); } _options = options; _serializer = options.Serializer ?? new TypeSystemSerializer(); Connect(); }