MongoDBServerResource
Class net10.0
A resource that represents a MongoDB container.
namespace Aspire.Hosting.ApplicationModel;
public class MongoDBServerResource : Aspire.Hosting.ApplicationModel.ContainerResource, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...} ContainerResourceIManifestExpressionProviderIResourceIResourceWithConnectionStringIValueProviderIValueWithReferences
11 members
Constructors2
Section titled ConstructorsMongoDBServerResource(string) A resource that represents a MongoDB container.
MongoDBServerResource(string, ParameterResource?, ParameterResource?) Initialize a resource that represents a MongoDB container.
Properties9
Section titled PropertiesConnectionStringExpressiongetReferenceExpression Gets the connection string for the MongoDB server.
DatabasesgetIReadOnlyDictionary<string, string> A dictionary where the key is the resource name and the value is the database name.
HostgetEndpointReferenceExpression Gets the host endpoint reference for this resource.
PasswordParametergetParameterResource? Gets the parameter that contains the MongoDb server password.
PortgetEndpointReferenceExpression Gets the port endpoint reference for this resource.
PrimaryEndpointgetEndpointReference Gets the primary endpoint for the MongoDB server.
UriExpressiongetReferenceExpression Gets the connection URI expression for the MongoDB server.
UserNameParametergetParameterResource? Gets the parameter that contains the MongoDb server username.
UserNameReferencegetReferenceExpression Gets a reference to the user name for the MongoDB server.