Difference between SendAsync and SendCoreAsync methods in SignalR Core?

Quoting @anurse from GitHub: Long story short: The Core methods should be ignored unless you really know what you’re doing. Short story long: We started with SendAsync, which takes an array of arguments to send: public void SendAsync(string method, object[] args); Clients.All.SendAsync(“Method”, new object[] { arg1, arg2, arg3 }); Obviously it’s a pain to have … Read more

Call SignalR Core Hub method from Controller

Solution 1 Another possibility is to inject your HubContext into your controller like: public VarDesignCommController(IHubContext<VarDesignHub> hubcontext) { HubContext = hubcontext; … } private IHubContext<VarDesignHub> HubContext { get; set; } Then you can also call await this.HubContext.Clients.All.InvokeAsync(“Completed”, id); But then you will direct call methods on all clients. Solution 2 You can also work with typed … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)