예제 #1
0
        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);
        }
예제 #2
0
        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);
        }