Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected async isRelatedNameAvailable(wizardContext: IIntegrationAccountWizardContext, name: string): Promise {
return ResourceGroupListStep.isNameAvailable(wizardContext, name);
}
protected async isRelatedNameAvailable(wizardContext: IAzureLogicAppWizardContext, name: string): Promise {
return ResourceGroupListStep.isNameAvailable(wizardContext, name);
}
protected async isRelatedNameAvailable(wizardContext: IAppServiceWizardContext, name: string): Promise {
const tasks: Promise[] = [ResourceGroupListStep.isNameAvailable(wizardContext, name)];
if (wizardContext.newSiteKind === AppKind.functionapp) {
tasks.push(StorageAccountListStep.isNameAvailable(wizardContext, name));
} else {
tasks.push(AppServicePlanListStep.isNameAvailable(wizardContext, name, name));
}
return (await Promise.all(tasks)).every((v: boolean) => v);
}
}
protected async isRelatedNameAvailable(wizardContext: ICosmosDBWizardContext, name: string): Promise {
return await ResourceGroupListStep.isNameAvailable(wizardContext, name);
}