How to call Clients in thread?
mc
6,576
Reputation points
I am using signalr in asp.net core
I want to use it in thread.
but there will be disposed exception. but it is not disposed.
public Thread PThread{get;set;}=new Thread(Pan);
public async void Pan()
{
await Clients.All.SendAsync("some",i);//will be exception.
}
or how to do task every 1 seconds? which can use Clients?
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.
Sign in to answer