DistributedApplicationFactory 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
DistributedApplicationFactory(Type) |
Initializes a new instance of the DistributedApplicationFactory class. |
DistributedApplicationFactory(Type, String[]) |
Factory for creating a distributed application for testing. |
DistributedApplicationFactory(Type)
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[])
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.