private async void btnAddGroup_Click(object sender, RoutedEventArgs e) { var groupId = Guid.NewGuid().ToString(); await faceServiceClient.CreateLargePersonGroupAsync(groupId, groupId); await LoadGroups(); SelectedGroup = FaceGroups.Where(a => a.Group.LargePersonGroupId == groupId).SingleOrDefault(); }
/// <summary> /// Handles the Click event of the btnAddGroup control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private async void btnAddGroup_Click(object sender, RoutedEventArgs e) { var groupId = Guid.NewGuid().ToString(); //await faceServiceClient.CreateLargePersonGroupAsync(groupId, groupId); await RetryHelper.VoidOperationWithBasicRetryAsync(() => _faceServiceClient.CreateLargePersonGroupAsync(groupId, groupId), new[] { "RateLimitExceeded" }, traceWriter : _mainWindowLogTraceWriter); await LoadGroups(); SelectedGroup = FaceGroups.Where(a => a.Group.LargePersonGroupId == groupId).SingleOrDefault(); }