共用方式為


DistributedApplicationFactory Constructors

Definition

Overloads

DistributedApplicationFactory(Type)

Initializes a new instance of the DistributedApplicationFactory class.

DistributedApplicationFactory(Type, String[])

Factory for creating a distributed application for testing.

DistributedApplicationFactory(Type)

Source:
DistributedApplicationFactory.cs
Source:
DistributedApplicationFactory.cs

Initializes a new instance of the DistributedApplicationFactory class.

public DistributedApplicationFactory (Type entryPoint);
new Aspire.Hosting.Testing.DistributedApplicationFactory : Type -> Aspire.Hosting.Testing.DistributedApplicationFactory
Public Sub New (entryPoint As Type)

Parameters

entryPoint
Type

A type in the entry point assembly of the target Aspire AppHost. Typically, the Program class can be used.

Applies to

DistributedApplicationFactory(Type, String[])

Source:
DistributedApplicationFactory.cs
Source:
DistributedApplicationFactory.cs

Factory for creating a distributed application for testing.

public DistributedApplicationFactory (Type entryPoint, string[] args);
new Aspire.Hosting.Testing.DistributedApplicationFactory : Type * string[] -> Aspire.Hosting.Testing.DistributedApplicationFactory
Public Sub New (entryPoint As Type, args As String())

Parameters

entryPoint
Type

A type in the entry point assembly of the target Aspire AppHost. Typically, the Program class can be used.

args
String[]

The command-line arguments to pass to the entry point.

Applies to