/// <summary> /// Creates an executor filter. /// </summary> /// <param name="executor">the <see cref="IoEventExecutor"/> to run events</param> /// <param name="eventTypes">the event types interested</param> public ExecutorFilter(IoEventExecutor executor, IoEventType eventTypes) { _eventTypes = eventTypes; if (executor == null) _executor = new OrderedThreadPoolExecutor(); else _executor = executor; }
public ExecutorFilter(IoEventExecutor executor, IoEventType eventTypes) { _eventTypes = eventTypes; if (executor == null) { _executor = new OrderedThreadPoolExecutor(); } else { _executor = executor; } }
/// <summary> /// Creates an executor filter on default event types. /// </summary> /// <param name="executor">the <see cref="IoEventExecutor"/> to run events</param> public ExecutorFilter(IoEventExecutor executor) : this(executor, DefaultEventSet) { }
public ExecutorFilter(IoEventExecutor executor) : this(executor, DefaultEventSet) { }