Questions tagged [iprogress]

IProgress is an interface of .Net Framework which defines a provider for progress updates.

IProgress<T> is an interface of .Net Framework which defines a provider for progress updates.

public interface IProgress<in T>
{
    void Report(T value);
}

See Also

https://learn.microsoft.com/en-us/dotnet/api/system.iprogress-1

18 questions
0
votes
1 answer

C# Progress method executes after the await returns

I'm trying async await for the first time and running into a problem with using Progress. I call my async method using await and pass in my progress action. What I would like to happen is the progress would be displayed and when the method completes…
alans
  • 38
  • 5
0
votes
1 answer

SignalR Progress through MVC Controller

Above image represents the scenario I am trying to solve. I know from my previous experience that the Progress reporting pattern can be used to solve the problem of keeping the client updated but back then client was communicating to the hub…
Bala P
  • 143
  • 1
  • 12
-2
votes
1 answer

Async method running too fast to update my listbox on the main thread

I have a WPF button and a list box. when I press the button, it uses async and await to run a number generator. The number generator is just a for loop producing integers. Also in the loop is a Iprogress reporting the integer. A function in the main…
Nish
  • 11
  • 1
1
2