共用方式為


EnvironmentCallbackAnnotation Constructors

Definition

Overloads

EnvironmentCallbackAnnotation(Action<EnvironmentCallbackContext>)

Initializes a new instance of the EnvironmentCallbackAnnotation class with the specified callback.

EnvironmentCallbackAnnotation(Action<Dictionary<String,Object>>)

Initializes a new instance of the EnvironmentCallbackAnnotation class with the specified callback action.

EnvironmentCallbackAnnotation(Func<EnvironmentCallbackContext,Task>)

Initializes a new instance of the EnvironmentCallbackAnnotation class with the specified callback.

EnvironmentCallbackAnnotation(String, Func<String>)

Initializes a new instance of the EnvironmentCallbackAnnotation class with the specified name and callback function.

EnvironmentCallbackAnnotation(Action<EnvironmentCallbackContext>)

Source:
EnvironmentCallbackAnnotation.cs
Source:
EnvironmentCallbackAnnotation.cs

Initializes a new instance of the EnvironmentCallbackAnnotation class with the specified callback.

public EnvironmentCallbackAnnotation (Action<Aspire.Hosting.ApplicationModel.EnvironmentCallbackContext> callback);
new Aspire.Hosting.ApplicationModel.EnvironmentCallbackAnnotation : Action<Aspire.Hosting.ApplicationModel.EnvironmentCallbackContext> -> Aspire.Hosting.ApplicationModel.EnvironmentCallbackAnnotation
Public Sub New (callback As Action(Of EnvironmentCallbackContext))

Parameters

callback
Action<EnvironmentCallbackContext>

The callback to be invoked.

Applies to

EnvironmentCallbackAnnotation(Action<Dictionary<String,Object>>)

Source:
EnvironmentCallbackAnnotation.cs
Source:
EnvironmentCallbackAnnotation.cs

Initializes a new instance of the EnvironmentCallbackAnnotation class with the specified callback action.

public EnvironmentCallbackAnnotation (Action<System.Collections.Generic.Dictionary<string,object>> callback);
new Aspire.Hosting.ApplicationModel.EnvironmentCallbackAnnotation : Action<System.Collections.Generic.Dictionary<string, obj>> -> Aspire.Hosting.ApplicationModel.EnvironmentCallbackAnnotation
Public Sub New (callback As Action(Of Dictionary(Of String, Object)))

Parameters

callback
Action<Dictionary<String,Object>>

The callback action to be executed.

Applies to

EnvironmentCallbackAnnotation(Func<EnvironmentCallbackContext,Task>)

Source:
EnvironmentCallbackAnnotation.cs
Source:
EnvironmentCallbackAnnotation.cs

Initializes a new instance of the EnvironmentCallbackAnnotation class with the specified callback.

public EnvironmentCallbackAnnotation (Func<Aspire.Hosting.ApplicationModel.EnvironmentCallbackContext,System.Threading.Tasks.Task> callback);
new Aspire.Hosting.ApplicationModel.EnvironmentCallbackAnnotation : Func<Aspire.Hosting.ApplicationModel.EnvironmentCallbackContext, System.Threading.Tasks.Task> -> Aspire.Hosting.ApplicationModel.EnvironmentCallbackAnnotation
Public Sub New (callback As Func(Of EnvironmentCallbackContext, Task))

Parameters

callback
Func<EnvironmentCallbackContext,Task>

The callback to be invoked.

Applies to

EnvironmentCallbackAnnotation(String, Func<String>)

Source:
EnvironmentCallbackAnnotation.cs
Source:
EnvironmentCallbackAnnotation.cs

Initializes a new instance of the EnvironmentCallbackAnnotation class with the specified name and callback function.

public EnvironmentCallbackAnnotation (string name, Func<string> callback);
new Aspire.Hosting.ApplicationModel.EnvironmentCallbackAnnotation : string * Func<string> -> Aspire.Hosting.ApplicationModel.EnvironmentCallbackAnnotation
Public Sub New (name As String, callback As Func(Of String))

Parameters

name
String

The name of the environment variable to set.

callback
Func<String>

The callback function that returns the value to set the environment variable to.

Applies to