/// <summary> /// Requests the current gamer's UUID. /// </summary> /// <returns>The UUID of the gamer to whom the console is currently registered.</returns> public async Task<string> RequestGamerUuidAsync() { if (!String.IsNullOrEmpty(_gamerUuid)) return _gamerUuid; var tcs = new TaskCompletionSource<string>(); var listener = new StringListener(tcs); RequestGamerUuid(listener); _gamerUuid = await tcs.Task; Log("Gamer uuid " + _gamerUuid); return _gamerUuid; }
/// <summary> /// Requests the current gamer's UUID. /// </summary> /// <returns>The UUID of the gamer to whom the console is currently registered.</returns> public async Task <string> RequestGamerUuidAsync() { if (!String.IsNullOrEmpty(_gamerUuid)) { return(_gamerUuid); } var tcs = new TaskCompletionSource <string>(); var listener = new StringListener(tcs); RequestGamerUuid(listener); _gamerUuid = await tcs.Task; Log("Gamer uuid " + _gamerUuid); return(_gamerUuid); }