예제 #1
0
        private static async Task NotifyHubEventAsync(CancellationToken ct)
        {
            while (true)
            {
                if (ct.IsCancellationRequested)
                {
                    break;
                }

                try
                {
                    object msg = msgFeedbackQueue.Take();
                    if (msg != null && _sender != null)
                    {
                        _sender.OnMessage(serviceClient, new ReceivedMessageEventArgs(msg));
                    }
                }
                catch (Exception ex)
                {
                }
            }
        }