Cómo usar Workers (Background Services) en Blazor .NET | Servicios en segundo plano + HTTP Client
Ing. Dagoberto Sánchez
0:00 / 0:00
Cómo usar Workers (Background Services) en Blazor .NET | Servicios en segundo plano + HTTP Client
198 просмотров · 1 месяц назад
Ing. Dagoberto Sánchez
8,34 тыс. подписчиков
198 просмотров · 1 месяц назад
Cómo usar Workers (Background Services) en Blazor .NET | Servicios en segundo plano + HTTP Client
¿Quieres que tu aplicación Blazor ejecute tareas automáticamente cada cierto tiempo sin que el usuario tenga que hacer nada? En este video te enseño paso a paso cómo crear e integrar un Worker Service dentro de un proyecto Blazor Web App.
Aprenderás:
✅ Qué es un Worker Service y para qué sirve
✅ Cómo crear un Worker desde cero en Visual Studio (.NET 10)
✅ Cómo hacer peticiones HTTP GET cada X segundos a una API
✅ Cómo integrar el Worker dentro de un proyecto Blazor Server
✅ Cómo registrar el servicio en Program.cs
✅ Casos reales: facturación, consultas, actualización de datos, envío de correos, etc.
Recursos usados en el video:
🌐 Portal y APIs: https://hycontroller.co/apis
🌐 Sitio web: https://hycontroller.co/
📺 Canal: / @dagobertosanchez
⏱️ Timestamps:
0:00 - Introducción a los Workers en Blazor
1:00 - Crear proyecto Worker Service
2:20 - Estructura básica del Worker
3:45 - Consultar una API con HttpClient cada 3 segundos
11:00 - Crear proyecto Blazor Web App
12:15 - Integrar el Worker en Blazor
13:30 - Registrar el Hosted Service en Program.cs
15:00 - Demostración final + ajustar el intervalo
💡 Ideal para desarrolladores .NET que quieren automatizar procesos en segundo plano (facturación, monitoreo, notificaciones, actualización de datos, etc.).
¿Te gustó el video?
👍 Dale like
🔔 Suscríbete y activa la campanita
💬 Déjame en los comentarios qué caso de uso quieres que veamos con Workers
#Blazor #DotNet #CSharp #WorkerService #BackgroundServices #ASPNETCore #BlazorServer #Programacion #DesarrolloWeb
---
How to use Workers (Background Services) in Blazor .NET | Background tasks + HttpClient
Want your Blazor app to run tasks automatically every few seconds without user interaction? In this video I’ll show you step by step how to create and integrate a Worker Service inside a Blazor Web App.
What you’ll learn:
✅ What a Worker Service is and why you need it
✅ How to create a Worker project from scratch in Visual Studio (.NET 10)
✅ How to make HTTP GET requests every X seconds to an API
✅ How to integrate the Worker into a Blazor Server project
✅ How to register the hosted service in Program.cs
✅ Real use cases: billing, data polling, notifications, email sending, etc.
Resources used in the video:
🌐 Portal & APIs: https://hycontroller.co/apis
🌐 Website: https://hycontroller.co/
📺 Channel: / @dagobertosanchez
⏱️ Timestamps:
0:00 - Introduction to Workers in Blazor
1:00 - Creating a Worker Service project
2:20 - Basic Worker structure
3:45 - Calling an API with HttpClient every 3 seconds
11:00 - Creating a Blazor Web App
12:15 - Integrating the Worker into Blazor
13:30 - Registering the Hosted Service in Program.cs
15:00 - Final demo + adjusting the interval
💡 Perfect for .NET developers who want to automate background processes (billing checks, monitoring, notifications, data updates, etc.).
Did you enjoy the video?
👍 Like
🔔 Subscribe and hit the bell
💬 Comment what use case you want to see next with Workers
#Blazor #DotNet #CSharp #WorkerService #BackgroundServices #ASPNETCore #BlazorServer #WebDevelopment #Programming