コード例 #1
0
ファイル: ExecutorFilter.cs プロジェクト: zhangf911/Mina.NET
 /// <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;
 }
コード例 #2
0
 public ExecutorFilter(IoEventExecutor executor, IoEventType eventTypes)
 {
     _eventTypes = eventTypes;
     if (executor == null)
     {
         _executor = new OrderedThreadPoolExecutor();
     }
     else
     {
         _executor = executor;
     }
 }
コード例 #3
0
ファイル: ExecutorFilter.cs プロジェクト: zhangf911/Mina.NET
 /// <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)
 { }
コード例 #4
0
 public ExecutorFilter(IoEventExecutor executor)
     : this(executor, DefaultEventSet)
 {
 }