Skip to content
Docs Try Aspire

SurrealDbServerResource Properties

Class Properties 8 members
A resource that represents a SurrealDB container.
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
Gets the connection string expression for the SurrealDB instance.
public ReferenceExpression ConnectionStringExpression { get; }
Host Section titled Host EndpointReferenceExpression
Gets the host endpoint reference for this resource.
public EndpointReferenceExpression Host { get; }
Namespaces Section titled Namespaces IReadOnlyDictionary<string, string>
A dictionary where the key is the resource name and the value is the namespace name.
public IReadOnlyDictionary<string, string> Namespaces { get; }
PasswordParameter Section titled PasswordParameter ParameterResource
Gets the parameter that contains the SurrealDB password.
public ParameterResource PasswordParameter { get; }
Port Section titled Port EndpointReferenceExpression
Gets the port endpoint reference for this resource.
public EndpointReferenceExpression Port { get; }
PrimaryEndpoint Section titled PrimaryEndpoint EndpointReference
Gets the primary endpoint for the SurrealDB instance.
public EndpointReference PrimaryEndpoint { get; }
UriExpression Section titled UriExpression ReferenceExpression
Gets the connection URI expression for the SurrealDB instance.
public ReferenceExpression UriExpression { get; }
Format: ws://{host}:{port}/rpc.
UserNameParameter Section titled UserNameParameter nullable ParameterResource?
Gets the parameter that contains the SurrealDB username.
public ParameterResource? UserNameParameter { get; }