Example #1
0
 /// <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;
 }
Example #2
0
 public ExecutorFilter(IoEventExecutor executor, IoEventType eventTypes)
 {
     _eventTypes = eventTypes;
     if (executor == null)
     {
         _executor = new OrderedThreadPoolExecutor();
     }
     else
     {
         _executor = executor;
     }
 }
Example #3
0
 /// <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)
 { }
Example #4
0
 public ExecutorFilter(IoEventExecutor executor)
     : this(executor, DefaultEventSet)
 {
 }