To access all the possible configuration option supported by the MongoDB C# driver it's better to also configure the driver allowing to configure the instance of MongoClientSettings class generated from the connection string.
It allows to configure anything that cannot be done via connection string.
Add a new configuration function parameter to MongoPersistenceOptions that accepts a function to configure any MongoClientSettings value.
To access all the possible configuration option supported by the MongoDB C# driver it's better to also configure the driver allowing to configure the instance of MongoClientSettings class generated from the connection string.
It allows to configure anything that cannot be done via connection string.
Add a new configuration function parameter to MongoPersistenceOptions that accepts a function to configure any MongoClientSettings value.