Questions tagged [reportprogress]
8 questions
6
votes
2 answers
Angular upload progress is not reporting correctly
I am trying to build an upload form that is inspired by this article:
https://malcoded.com/posts/angular-file-upload-component-with-express/
I am using angular 9 and ngx-bootstrap and I am not using a dialog or angular material.
So, I have levied…

r3plica
- 13,017
- 23
- 128
- 290
2
votes
2 answers
Progress class and problem with synchronization
Task Foo(IProgress onProgressPercentChanged){
return Task.Run(() =>{
for (int i = 0; i < 1000; i++){
if (i % 10 == 0)
onProgressPercentChanged.Report(i / 10);
//Some operation
}
…

Johnny Bravo
- 41
- 3
1
vote
0 answers
angular reportprogress with httpinterceptor
songService
songCreate(song){
console.log(song);
const formData: FormData = new FormData();
for (let i = 0; i < song.song.files.length; i++) {
console.log(song.song.files[i]);
formData.append('song', song.song.files[i],…

Anuj Shah
- 25
- 4
1
vote
1 answer
Angular 10 report progress event total undefined, Content-Length header is present
I'm trying to implement an http interceptor that will update a progress bar each time a http request is sent to the API (also if report progress is true). In the very basic stage of it, which is why everything is mostly console logs and…

M.Chappell
- 43
- 2
- 9
0
votes
1 answer
c# how to use ProgressChanged event of BackgroundWorker to do UI actions in the middle of thread
Here is simple code which has UI actions in the middle of backgroundworker.
There is a form and a label "lbProgress" on it.
When ProgressPercentage = 2, label is not changed but the action does.
private void Form1_Load(object sender, EventArgs…

Orgil
- 187
- 3
- 13
0
votes
0 answers
Unit testing BackgroundWorker reporting progress
The following class has a method that calls the ReportProgress method of a 'BackgroundWorker`:
public class Project
{
protected System.ComponentModel.BackgroundWorker worker;
public void progress(int percentage)
{
if (worker !=…

Al2110
- 566
- 9
- 25
0
votes
1 answer
C# Backgroundworker ReportProgress() not executing
Hello I am trying to populate a progress bar but the ReportProgress call its not been executed for some reason.
Here is my code
//create status_Worker
status_Worker = new BackgroundWorker();
status_Worker.DoWork += new…

Fernando
- 29
- 6
-1
votes
1 answer
Get progress for multiple tasks while they running
I have a created a background job which processes users(ex: 2000 users, calling other apis and adding to database), I have divided users into few chunks (ex: 10 chunks) and processing them in tasks for each chunk.
I need to get progress of how many…

Sai Kiran
- 55
- 6