public IReadOnlyList<LightNodeFilterAttribute> GetFilters(ILightNodeOptions options, OperationContext context, IReadOnlyList<LightNodeFilterAttribute> originalFilters) { if (MessageBroker == null || Timer == null) return originalFilters; MessageBroker.Publish(context); if (originalFilters.Count == 0) return originalFilters; var array = new LightNodeFilterAttribute[originalFilters.Count]; for (int i = 0; i < originalFilters.Count; i++) { array[i] = new FilterWrapper(MessageBroker, Timer, originalFilters[i]); } return array; }
public IReadOnlyList <LightNodeFilterAttribute> GetFilters(ILightNodeOptions options, OperationContext context, IReadOnlyList <LightNodeFilterAttribute> originalFilters) { if (MessageBroker == null || Timer == null) { return(originalFilters); } MessageBroker.Publish(context); if (originalFilters.Count == 0) { return(originalFilters); } var array = new LightNodeFilterAttribute[originalFilters.Count]; for (int i = 0; i < originalFilters.Count; i++) { array[i] = new FilterWrapper(MessageBroker, Timer, originalFilters[i]); } return(array); }
public FilterWrapper(IMessageBroker messageBroker, IExecutionTimer timer, LightNodeFilterAttribute originalFilter) { this.originalFilter = originalFilter; this.messageBroker = messageBroker; this.timer = timer; }