Skip to content
Docs Try Aspire

DistributedApplicationFactory Constructors

Class Constructors 2 members
Factory for creating a distributed application for testing.
Factory for creating a distributed application for testing.
public class DistributedApplicationFactory
{
public DistributedApplicationFactory(
Type entryPoint,
string[] args)
{
// ...
}
}
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.
Initializes a new instance of the DistributedApplicationFactory class.
public class DistributedApplicationFactory
{
public DistributedApplicationFactory(
Type entryPoint)
{
// ...
}
}
entryPoint Type A type in the entry point assembly of the target Aspire AppHost. Typically, the Program class can be used.