예제 #1
0
        private void stateDataStateChanged(object sender, StateChangedEventArgs e)
        {
            string     topicKey = StateChangedTopic.BuildStateChangedTopicString(e.Key);
            EventTopic topic    = EventTopics.Get(topicKey);

            if (topic != null)
            {
                topic.Fire(this, e, this, PublicationScope.WorkItem);
            }
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StateChangedAttribute"/> using the provided
 /// topic and thread options.
 /// </summary>
 /// <param name="topic">The state topic.</param>
 /// <param name="option">The threading option.</param>
 public StateChangedAttribute(string topic, ThreadOption option)
     : base(StateChangedTopic.BuildStateChangedTopicString(topic))
 {
     this.Thread = option;
 }