public async Task <string> GetConfigAndSignListener(string dataId, string group, Action <string> listener) { string content = await GetConfig(dataId, group); await _worker.AddTenantListenersWithContent(dataId, group, content, listener); return(content); }
public async Task <string> GetConfigAndSignListener(string dataId, string group, long timeoutMs, IListener listener) { string content = await GetConfig(dataId, group, timeoutMs).ConfigureAwait(false); await _worker.AddTenantListenersWithContent(dataId, group, content, new List <IListener> { listener }).ConfigureAwait(false); return(content); }