public async execute()

in src/topic/createWizard/TopicCreateStep.ts [14:26]


    public async execute(wizardContext: T): Promise<T> {
        if (!wizardContext.topic) {
            ext.outputChannel.appendLine(localize('creating', 'Creating topic "{0}"...', wizardContext.newTopicName));
            const client: EventGridManagementClient = createAzureClient(wizardContext, EventGridManagementClient);
            // tslint:disable-next-line:no-non-null-assertion
            wizardContext.topic = await client.topics.createOrUpdate(wizardContext.resourceGroup!.name!, wizardContext.newTopicName!, { location: wizardContext.location!.name! });
            const message: string = localize('created', 'Successfully created topic "{0}".', wizardContext.newTopicName);
            ext.outputChannel.appendLine(message);
            vscode.window.showInformationMessage(message);
        }

        return wizardContext;
    }