File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,20 @@ internal static IEnumerable<IHandlerTypeDescriptor> GetDescriptors(IEnumerable<A
106
106
}
107
107
}
108
108
)
109
- . Where ( z => ( z . IsInterface || ( z . IsClass && ! z . IsAbstract ) ) && typeof ( IJsonRpcHandler ) . IsAssignableFrom ( z ) )
109
+ . Where ( z => ( z . IsInterface || ( z . IsClass && ! z . IsAbstract ) ) )
110
+ // running on mono this call can cause issues when scanning of the entire assembly.
111
+ . Where (
112
+ z => {
113
+ try
114
+ {
115
+ return typeof ( IJsonRpcHandler ) . IsAssignableFrom ( z ) ;
116
+ }
117
+ catch
118
+ {
119
+ return false ;
120
+ }
121
+ }
122
+ )
110
123
. Where ( z => MethodAttribute . From ( z ) != null )
111
124
. Where ( z => ! z . Name . EndsWith ( "Manager" ) ) // Manager interfaces are generally specializations around the handlers
112
125
. Select ( HandlerTypeDescriptorHelper . GetMethodType )
You can’t perform that action at this time.
0 commit comments