public async Task <ApiResult> BroadcastAsync([FromBody] BroadcastContext context) { await _connectionManager.BroadcastAsync(new WebSocketMessageContext { Command = WebSocketCommands.DataSend, MessageType = WebSocketMessageType.Text, Value = context }); return(new ApiResult()); }
private void Update() { while (BroadcastEventDispatcher.actions.Count > 0) { BroadcastEventDispatcher.actions.Dequeue()?.Invoke(); } BroadcastContext.BroadcastOnConsentUIReadyIfNeeded(); BroadcastContext.BroadcastIOnConsentUIFinishedIfNeeded(); BroadcastContext.BroadcastIOnConsentErrorIfNeeded(); BroadcastContext.BroadcastIOnConsentActionIfNeeded(); BroadcastContext.BroadcastIOnConsentReadyIfNeeded(); }
public DataSetsController(BroadcastContext context) { _context = context; }
public Broadcast(BroadcastContext context) { _context = context; //new Action( async() => await BroadcastDataAsync())(); }
public WebController(BroadcastContext context) { _context = context; }