예제 #1
0
        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;
 }
예제 #4
0
 public Broadcast(BroadcastContext context)
 {
     _context = context;
     //new Action( async() => await BroadcastDataAsync())();
 }
예제 #5
0
 public WebController(BroadcastContext context)
 {
     _context = context;
 }