Skip to content
Browse files

Fix - reflection-based hub provider should discover public types only.

  • Loading branch information...
1 parent b9deb25 commit 47de324acf455b7769cfb5f78af4ea8af79f9165 @pszmyd pszmyd committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 SignalR/Hubs/Lookup/ReflectedHubDescriptorProvider.cs
View
2 SignalR/Hubs/Lookup/ReflectedHubDescriptorProvider.cs
@@ -63,7 +63,7 @@ private static bool IsHubType(Type type)
{
try
{
- return typeof(IHub).IsAssignableFrom(type) && !type.IsAbstract;
+ return typeof(IHub).IsAssignableFrom(type) && !type.IsAbstract && type.IsPublic;
}
catch
{

0 comments on commit 47de324

Please sign in to comment.
Something went wrong with that request. Please try again.