File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 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
106106 }
107107 }
108108 )
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+ )
110123 . Where ( z => MethodAttribute . From ( z ) != null )
111124 . Where ( z => ! z . Name . EndsWith ( "Manager" ) ) // Manager interfaces are generally specializations around the handlers
112125 . Select ( HandlerTypeDescriptorHelper . GetMethodType )
You can’t perform that action at this time.
0 commit comments