NatsServerResource Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
NatsServerResource(String) |
A resource that represents a NATS server container. |
NatsServerResource(String, ParameterResource, ParameterResource) |
Initializes a new instance of the NatsServerResource class. |
NatsServerResource(String)
- Source:
- NatsServerResource.cs
- Source:
- NatsServerResource.cs
- Source:
- NatsServerResource.cs
A resource that represents a NATS server container.
public NatsServerResource(string name);
new Aspire.Hosting.ApplicationModel.NatsServerResource : string -> Aspire.Hosting.ApplicationModel.NatsServerResource
Public Sub New (name As String)
Parameters
- name
- String
The name of the resource.
Applies to
NatsServerResource(String, ParameterResource, ParameterResource)
- Source:
- NatsServerResource.cs
Initializes a new instance of the NatsServerResource class.
public NatsServerResource(string name, Aspire.Hosting.ApplicationModel.ParameterResource? userName, Aspire.Hosting.ApplicationModel.ParameterResource? password);
new Aspire.Hosting.ApplicationModel.NatsServerResource : string * Aspire.Hosting.ApplicationModel.ParameterResource * Aspire.Hosting.ApplicationModel.ParameterResource -> Aspire.Hosting.ApplicationModel.NatsServerResource
Public Sub New (name As String, userName As ParameterResource, password As ParameterResource)
Parameters
- name
- String
The name of the resource.
- userName
- ParameterResource
A parameter that contains the NATS server user name, or null
to use a default value.
- password
- ParameterResource
A parameter that contains the NATS server password.