Skip to content

Commit f91548c

Browse files
committed
get filters for command from base class
1 parent 0b588e8 commit f91548c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SuperSocket.Command/CommandMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ public void Initialize(IServiceProvider serviceProvider, CommandTypeInfo command
561561
if (commandOptions.GlobalCommandFilterTypes.Any())
562562
filters.AddRange(commandOptions.GlobalCommandFilterTypes.Select(t => ActivatorUtilities.CreateInstance(serviceProvider, t) as CommandFilterBaseAttribute));
563563

564-
filters.AddRange(commandTypeInfo.ActualCommandType.GetCustomAttributes(false).OfType<CommandFilterBaseAttribute>());
564+
filters.AddRange(commandTypeInfo.ActualCommandType.GetCustomAttributes(true).OfType<CommandFilterBaseAttribute>());
565565
Filters = filters;
566566
}
567567

0 commit comments

Comments
 (0)