if the background service is in the same application, then just use a shared collection (queue):
BackgroundService - Is it possible to set parameter value?
Cenk
1,051
Reputation points
Hi,
I have a background service. I wonder if it is possible to set a parameter to this service from the Blazor Server application or in any other way?
Thank you in advance.
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | ASP.NET | ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
Developer technologies | .NET | Blazor
Developer technologies | .NET | Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML, developed by Microsoft.
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
1 answer
Sort by: Most helpful
-
Bruce (SqlWork.com) 82,686 Reputation points Volunteer Moderator
2023-02-02T18:45:27.95+00:00