internal Message(MessageValue messageValue, IMonitor monitor) : base(messageValue) { this.messageId = messageValue.__Id; this.monitor = monitor; this.fieldSelectors = new Dictionary <string, ISelector>(); // constructor the selector fieldSelectors.Add(SOURCE_ADDRESS_SELECTOR_NAME, monitor.CreateSearchSelector(SOURCE_ADDRESS_SELECTOR_NAME, null, 0, SearchSelectorFlags.IncludeAnnotations | SearchSelectorFlags.IncludeFields | SearchSelectorFlags.IncludeProperties | SearchSelectorFlags.StopAtFirst)); fieldSelectors.Add(DESTINATION_ADDRESS_SELECTOR_NAME, monitor.CreateSearchSelector(DESTINATION_ADDRESS_SELECTOR_NAME, null, 0, SearchSelectorFlags.IncludeAnnotations | SearchSelectorFlags.IncludeFields | SearchSelectorFlags.IncludeProperties | SearchSelectorFlags.StopAtFirst)); fieldSelectors.Add(FRAME_NUMBER_SELECTOR_NAME, monitor.CreateSearchSelector(FRAME_NUMBER_SELECTOR_NAME, null, 0, SearchSelectorFlags.IncludeAnnotations | SearchSelectorFlags.StopAtFirst)); }