Skip to content
Docs Try Aspire

ILanguageSupport Methods

Interface Methods 3 members
Interface for providing language-specific support for polyglot AppHosts. Implementations provide scaffolding, detection, and runtime execution configuration.
Detects if a directory contains an AppHost for this language.
public interface ILanguageSupport
{
public abstract DetectionResult Detect(
string directoryPath)
{
// ...
}
}
directoryPath string The directory to check.
DetectionResult Detection result with language and file information.
Gets the runtime execution specification for this language.
public interface ILanguageSupport
{
public abstract RuntimeSpec GetRuntimeSpec()
{
// ...
}
}
RuntimeSpec The runtime spec containing commands for execution.
Scaffold(ScaffoldRequest) Section titled Scaffold(ScaffoldRequest) abstract Dictionary<string, string>
Generates scaffold files for a new project.
public interface ILanguageSupport
{
public abstract Dictionary<string, string> Scaffold(
ScaffoldRequest request)
{
// ...
}
}
request ScaffoldRequest The scaffold request containing project details.
Dictionary<string, string> A dictionary of relative file paths to file contents.