/// <summary> /// Resolve the session node from the context with infinite retries /// </summary> /// <returns>The resolved session node name</returns> private async Task <string> ResolveSessionNodeWithRetries() { RetryManager retry = SoaHelper.GetDefaultInfinitePeriodRertyManager(); return(await RetryHelper <string> .InvokeOperationAsync( async() => await this.context.ResolveSessionLauncherNodeAsync(), async (e, r) => { TraceHelper.TraceWarning("0", "[SchedulerHelper] Failed to ResolveSessionLauncherNodeAsync: {0}\nRetryCount = {1}", e, r.RetryCount); await Task.CompletedTask; }, retry)); }