次の方法で共有


EnvironmentCallbackContext Constructor

Definition

Represents a callback context for environment variables associated with a publisher.

public EnvironmentCallbackContext (Aspire.Hosting.DistributedApplicationExecutionContext executionContext, System.Collections.Generic.Dictionary<string,object>? environmentVariables = default, System.Threading.CancellationToken cancellationToken = default);
new Aspire.Hosting.ApplicationModel.EnvironmentCallbackContext : Aspire.Hosting.DistributedApplicationExecutionContext * System.Collections.Generic.Dictionary<string, obj> * System.Threading.CancellationToken -> Aspire.Hosting.ApplicationModel.EnvironmentCallbackContext
Public Sub New (executionContext As DistributedApplicationExecutionContext, Optional environmentVariables As Dictionary(Of String, Object) = Nothing, Optional cancellationToken As CancellationToken = Nothing)

Parameters

executionContext
DistributedApplicationExecutionContext

The execution context for this invocation of the AppHost.

environmentVariables
Dictionary<String,Object>

The environment variables associated with this execution.

cancellationToken
CancellationToken

A CancellationToken.

Applies to