addPerlModule

Method
📦 CommunityToolkit.Aspire.Hosting.Perl v13.6.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addPerlModule(
resourceName: string,
appDirectory: string,
moduleName: string): PerlAppResource;
}

Signature

methodaddPerlModulebuilder
Adds a Perl module to the application model. The module is executed using `perl -MModule::Name -e "Module::Name->run()"`.
addPerlModule(
resourceName: string,
appDirectory: string,
moduleName: string): PerlAppResource
resourceNamestringThe name of the resource.
appDirectorystringThe path to the working directory for the application.
moduleNamestringThe fully qualified Perl module name (e.g., `"MyApp::Main"`).
PerlAppResource

Applies to

This method applies to the following types: