Skip to main content

Questions tagged [backgroundworker]

BackgroundWorker is a helper class in .NET's System.ComponentModel namespace providing a general implementation of the Event-Based Asynchronous Pattern to manage a worker thread, support cooperative cancellation, and report progress.

backgroundworker
0 votes
1 answer
31 views

Implementing Background thread for a long running task

How can I manage two tasks that each take more than two hours to execute in .net MVC? I've been fetching a huge amount of data from a third-party website, and although I've tried using async/await, ...
ajay grandhi's user avatar
0 votes
0 answers
19 views

WTSQueryUserToken returning "0x0000000000000000" hImpersonationToken even there is an active session

I am working on window service and trying to execute the .exe file from the code. I looked around the Stack Overflow for help and found this: How to run console application from Windows Service? The ...
Humzamanzur's user avatar
0 votes
2 answers
55 views

Create Multiple Instance of BackgroundService in ASP.NET Core

I am new to this and would appreciate some pointers or examples. How can I create multiple instances of a BackgroundService in an ASP.NET Core app that process messages from a queue? Should I use ...
K Singh's user avatar
0 votes
1 answer
46 views

Label not updating on BackGroundWorker work

I tried to search for solutions, but none work, so I'm asking directly. I'm using a BackGroundWorker and while I'm drawing a Bitmap I'd like to show it in the PictureBox. It seems tricky to do, so at ...
grimoiredark's user avatar
0 votes
2 answers
79 views

System.AggregateException in worker .NET 8 project

I am trying to implement a windows service by using worker project with communication to a SQL Server database. ON running it, I am getting two exceptions : System.AggregateException: Some services ...
Anas Nabi's user avatar
0 votes
0 answers
11 views

Is it feasible to use either Task.Run or BackgroundWorker to process multiple account registrations simultaneously

Some background - I am using VB.Net for a fairly heavily loaded (with logic/functions) web service. The web service app is about 850kb and also calls a decent number of DLL's for other processing. It ...
Mark Anderson's user avatar
0 votes
1 answer
32 views

Organizing scheduled tasks or deferred work in an ASP.NET MVC application

I have a small API application on ASP.NET MVC. One of my endpoints creates an entity and stores it in the database. Are there any tools that could change this entity after some time (for example, 1 ...
student0011001's user avatar
-3 votes
1 answer
85 views

How to cancel BackgroundWorker and set IsBusy to false?

I am trying to cancel a background worker in WinForms with CancelAsync() but this isn't setting the IsBusy property of the worker to false. The function that closes the worker is meant to restart the ...
Slash's user avatar
  • 91
0 votes
0 answers
38 views

Email sender worker class as a windows service isn't working .net core c#

Trying to do background service that sends email for subs. I'll share all the files. Here is the worker.cs; using Npgsql; using Newtonsoft.Json; using System.Net.Mail; namespace ...
shhimelsa's user avatar
0 votes
1 answer
115 views

Failed to retrieve OIDC token from "https://login.microsoftonline.com/*/oauth2/v2.0/token"

I am using OAuth for Kafka Message Consumption using C#. It's on .Net Core Background Service Worker class. I Registered app on Azure and using it for OAuth authentication GroupId = secret....
Unknown Coder's user avatar
0 votes
0 answers
67 views

C# Alternative to background worker for reporting progress and COM interop? [duplicate]

Background: I'm making a C# application to copy a range of cells into a bitmap image for reporting. All of my users have excel installed on their computer so the Excel COM interop is an easy way to ...
KennyTK's user avatar
0 votes
0 answers
10 views

After Creating Celery Task It is Throwing error Model Object is not Json serializable even though It is not Creating docs in db

attach_documents_to_project.delay( instance=current_project, created=True, request_data=request.data) The above code is in my .view.py file where I am calling celery task. @shared_task ...
Steff's user avatar
  • 43
1 vote
3 answers
100 views

Get type implementors using .NET microsoft dependency injection

I have i case where I need to get the type implementors registered in container to use them in BackgroundService. public abstract class ServiceRunner { public abstract Task RunAsync(...
Alexander Zhyshkevich's user avatar
0 votes
0 answers
52 views

integrate webworker with axios for crud operation on data in react project

i want to do CRUD operation on data on worker thread and keep main thread free for faster response but getting error : ERROR Uncaught ReferenceError: axios__WEBPACK_IMPORTED_MODULE_0__ is not defined ...
Shubham Mojad's user avatar
0 votes
0 answers
79 views

Background worker updates aren't deleting original worker. (Android Studio - Jetpack Compose/Kotlin)

I have a background worker that I toggle in one spot, but can add a filter to after the fact elsewhere. When I add a filter, I try to update and/or remove the original worker if one exists, but this ...
user23304859's user avatar

15 30 50 per page
1
2 3 4 5
234