/// <summary> /// Gets the league client api authentication credentials. /// </summary> /// <returns>The port and auth token.</returns> private async Task <(int port, string token, int processId)> GetAuthCredentialsAsync() { await Task.Run(() => _processHandler.WaitForProcess()).ConfigureAwait(false); return(await _lockFileHandler.ParseLockFileAsync(_processHandler.ExecutablePath).ConfigureAwait(false)); }
/// <summary> /// Gets the league client api authentication credentials. /// </summary> /// <returns>The port and auth token.</returns> private static async Task <(int port, string token)> GetAuthCredentialsAsync() { await _processHandler.WaitForProcessAsync().ConfigureAwait(false); return(await _lockFileHandler.ParseLockFileAsync(_processHandler.ExecutablePath).ConfigureAwait(false)); }