Microsoft.AspNet.SignalR.Messaging.DefaultSubscription.SetEventTopic C# (CSharp) Method

SetEventTopic() public method

public SetEventTopic ( string eventKey, Topic topic ) : void
eventKey string
topic Topic
return void
        public override void SetEventTopic(string eventKey, Topic topic)
        {
            base.SetEventTopic(eventKey, topic);

            lock (_cursors)
            {
                // O(n), but small n and it's not common
                var index = FindCursorIndex(eventKey);
                if (index != -1)
                {
                    _cursorTopics[index] = topic;
                }
            }
        }