RedisResource 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
RedisResource(String) |
A resource that represents a Redis resource independent of the hosting model. |
RedisResource(String, ParameterResource) |
Initializes a new instance of the RedisResource class. |
RedisResource(String)
- Source:
- RedisResource.cs
- Source:
- RedisResource.cs
- Source:
- RedisResource.cs
- Source:
- RedisResource.cs
A resource that represents a Redis resource independent of the hosting model.
public RedisResource(string name);
new Aspire.Hosting.ApplicationModel.RedisResource : string -> Aspire.Hosting.ApplicationModel.RedisResource
Public Sub New (name As String)
Parameters
- name
- String
The name of the resource.
Applies to
RedisResource(String, ParameterResource)
- Source:
- RedisResource.cs
Initializes a new instance of the RedisResource class.
public RedisResource(string name, Aspire.Hosting.ApplicationModel.ParameterResource password);
new Aspire.Hosting.ApplicationModel.RedisResource : string * Aspire.Hosting.ApplicationModel.ParameterResource -> Aspire.Hosting.ApplicationModel.RedisResource
Public Sub New (name As String, password As ParameterResource)
Parameters
- name
- String
The name of the resource.
- password
- ParameterResource
A parameter that contains the Redis server password.