@@ -107,7 +107,7 @@ public static IEvent On<T1, T2, T3, T4>(this IDispatcher dispatcher, string even
107107 /// <param name="eventName">事件名称</param>
108108 /// <param name="method">事件处理方法</param>
109109 /// <returns>事件对象</returns>
110- public static IEvent Listen ( this IDispatcher dispatcher , string eventName , Func < object > method )
110+ public static IEvent Listen < TResult > ( this IDispatcher dispatcher , string eventName , Func < TResult > method )
111111 {
112112 Guard . Requires < ArgumentNullException > ( method != null ) ;
113113 return dispatcher . On ( eventName , method . Target , method . Method ) ;
@@ -120,7 +120,7 @@ public static IEvent Listen(this IDispatcher dispatcher, string eventName, Func<
120120 /// <param name="eventName">事件名称</param>
121121 /// <param name="method">事件处理方法</param>
122122 /// <returns>事件对象</returns>
123- public static IEvent Listen < T1 > ( this IDispatcher dispatcher , string eventName , Func < T1 , object > method )
123+ public static IEvent Listen < T1 , TResult > ( this IDispatcher dispatcher , string eventName , Func < T1 , TResult > method )
124124 {
125125 Guard . Requires < ArgumentNullException > ( method != null ) ;
126126 return dispatcher . On ( eventName , method . Target , method . Method ) ;
@@ -133,7 +133,7 @@ public static IEvent Listen<T1>(this IDispatcher dispatcher, string eventName, F
133133 /// <param name="eventName">事件名称</param>
134134 /// <param name="method">事件处理方法</param>
135135 /// <returns>事件对象</returns>
136- public static IEvent Listen < T1 , T2 > ( this IDispatcher dispatcher , string eventName , Func < T1 , T2 , object > method )
136+ public static IEvent Listen < T1 , T2 , TResult > ( this IDispatcher dispatcher , string eventName , Func < T1 , T2 , TResult > method )
137137 {
138138 Guard . Requires < ArgumentNullException > ( method != null ) ;
139139 return dispatcher . On ( eventName , method . Target , method . Method ) ;
@@ -146,7 +146,7 @@ public static IEvent Listen<T1, T2>(this IDispatcher dispatcher, string eventNam
146146 /// <param name="eventName">事件名称</param>
147147 /// <param name="method">事件处理方法</param>
148148 /// <returns>事件对象</returns>
149- public static IEvent Listen < T1 , T2 , T3 > ( this IDispatcher dispatcher , string eventName , Func < T1 , T2 , T3 , object > method )
149+ public static IEvent Listen < T1 , T2 , T3 , TResult > ( this IDispatcher dispatcher , string eventName , Func < T1 , T2 , T3 , TResult > method )
150150 {
151151 Guard . Requires < ArgumentNullException > ( method != null ) ;
152152 return dispatcher . On ( eventName , method . Target , method . Method ) ;
@@ -159,7 +159,7 @@ public static IEvent Listen<T1, T2, T3>(this IDispatcher dispatcher, string even
159159 /// <param name="eventName">事件名称</param>
160160 /// <param name="method">事件处理方法</param>
161161 /// <returns>事件对象</returns>
162- public static IEvent Listen < T1 , T2 , T3 , T4 > ( this IDispatcher dispatcher , string eventName , Func < T1 , T2 , T3 , T4 , object > method )
162+ public static IEvent Listen < T1 , T2 , T3 , T4 , TResult > ( this IDispatcher dispatcher , string eventName , Func < T1 , T2 , T3 , T4 , TResult > method )
163163 {
164164 Guard . Requires < ArgumentNullException > ( method != null ) ;
165165 return dispatcher . On ( eventName , method . Target , method . Method ) ;
0 commit comments