Class UseMongoOptions
- Namespace
- Tharga.MongoDB.Configuration
- Assembly
- Tharga.MongoDB.dll
public record UseMongoOptions : IEquatable<UseMongoOptions>
- Inheritance
-
UseMongoOptions
- Implements
- Inherited Members
Properties
AssureIndex
Assure index on all statically defined collections. If this is false, the indexes will be checked the first time they are used. By default, this is true.
public bool AssureIndex { get; set; }
Property Value
DatabaseUsage
Limit firewall openings to specific configurations. If nothing is specified all defined configurations will be used.
public DatabaseUsage DatabaseUsage { get; set; }
Property Value
Logger
Attach a logger on startup.
public ILogger Logger { get; set; }
Property Value
OpenFirewall
Open atlas firewall for current IP if needed. If this is false, the firewall will be opened the first time they are used. By default, this is true. This is only valid if there is configuration for the firewall.
public bool OpenFirewall { get; set; }
Property Value
WaitToComplete
Wait for the UseMongoDB-method to complete before continuing. By default, this is false.
public bool WaitToComplete { get; set; }