This commit is contained in:
Konstantin Lepeshenkov 2024-11-02 18:17:56 +01:00
Родитель 56d7e8418e
Коммит f6bdae5760
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -115,7 +115,7 @@ export class MonitorViewList {
return this._monitorViews[keys[0]];
}
// Parses local project files and tries to infer connction settings from them
// Parses local project files and tries to infer connection settings from them
getStorageConnectionSettingsFromCurrentProject(defaultTaskHubName?: string, projectPath?: string): StorageConnectionSettings | null {
const hostJson = this.readHostJson(projectPath);
@ -158,7 +158,7 @@ export class MonitorViewList {
return new StorageConnectionSettings(ConnStringUtils.ExpandEmulatorShortcutIfNeeded(storageConnString), hubName, hubsConnString);
}
const storageConnString = this.getValueFromLocalSettings('AzureWebJobsStorage', projectPath);
const storageConnString = this.getValueFromLocalSettings(hostJson.connectionStringName || 'AzureWebJobsStorage', projectPath);
if (!storageConnString) {
return null;
}
@ -512,6 +512,8 @@ export class MonitorViewList {
result.connectionStringName = durableTask.storageProvider.StorageConnectionName || 'AzureWebJobsStorage';
result.otherConnectionStringName = durableTask.storageProvider.EventHubsConnectionName || 'EventHubsConnection';
break;
default:
result.connectionStringName = durableTask.storageProvider.connectionStringName;
}
}
}