Skip to content
DocsTry Aspire
DocsTry

AzureHostedAgentResource Constructors

ClassConstructors1 member
A Microsoft Foundry hosted agent resource.
Constructor(string, IResource, Action<HostedAgentConfiguration>)Section titled Constructor(string, IResource, Action<HostedAgentConfiguration>)
Creates a new instance of the AzureHostedAgentResource class.
public class AzureHostedAgentResource
{
public AzureHostedAgentResource(
string name,
IResource target,
Action<HostedAgentConfiguration>? configure = null)
{
// ...
}
}
namestring
targetIResource
configureAction<HostedAgentConfiguration>optional