public static async Task SendInfoResult(this HubConnection hubConnection, MediaInfoViewModel mediaInfo, CancellationToken token = default) { await hubConnection.InvokeCoreAsync(Constants.HubMethodNames.Info, new object[] { mediaInfo }, token); }
public async Task Info(MediaInfoViewModel mediaInfo) { await Clients.Others.SendAsync(Constants.HubMethodNames.Info, mediaInfo); }
public static async Task SendInfoResult <THub>(this IHubContext <THub> hubContext, MediaInfoViewModel mediaInfo, CancellationToken token = default) where THub : Hub { await hubContext.Clients.All.SendAsync(Constants.HubMethodNames.Info, mediaInfo, token); }