Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hez2010 committed May 12, 2024
1 parent 378ca8e commit ff03ae1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,12 @@ internal void CompleteFromAsyncActionWithProgress(IAsyncActionWithProgress<TProg

internal void CompleteFromAsyncOperation(IAsyncOperation<TResult> asyncInfo, AsyncStatus asyncStatus)
{
Complete(asyncInfo, ai => ((IAsyncOperation<TResult>)ai).GetResults(), asyncStatus);
Complete(asyncInfo, ai => ai.As<IAsyncOperation<TResult>>().GetResults(), asyncStatus);
}

internal void CompleteFromAsyncOperationWithProgress(IAsyncOperationWithProgress<TResult, TProgress> asyncInfo, AsyncStatus asyncStatus)
{
Complete(asyncInfo, ai => ((IAsyncOperationWithProgress<TResult, TProgress>)ai).GetResults(), asyncStatus);
Complete(asyncInfo, ai => ai.As<IAsyncOperationWithProgress<TResult, TProgress>>().GetResults(), asyncStatus);
}

private void Complete(IAsyncInfo asyncInfo, Func<IAsyncInfo, TResult> getResultsFunction, AsyncStatus asyncStatus)
Expand Down

0 comments on commit ff03ae1

Please sign in to comment.