MongoDBReplicaSetResource Properties
ClassProperties7 members
Represents a MongoDB replica set resource in the application model. A replica set is a group of MongoDB servers that maintain the same data set, providing redundancy and high availability.
Gets the combined connection string for the MongoDB replica set, which includes the endpoints of all members, interpretable by the MongoDB driver.
public ReferenceExpression ConnectionStringExpression { get; } Gets the MongoDB server resources that are members of this replica set, in the order they were added.
public IEnumerable<MongoDBServerResource> Members { get; } Gets the default human-readable name of this resource's type.
public override string ResourceTypeDisplayName { get; }Remarks
Override this property to identify the service, such as Redis or PostgreSQL Server, independently of its technical resource type. The default is the resource type. This label does not change the resource name, service discovery, or OpenTelemetry identity. Use
ResourceBuilderExtensions.WithResourceTypeDisplayName to override the label for an instance.