Commit 1b4b94e
committed
Throw exception is
The `[TopicResponseCache]` will only work with the `TopicController`. Initially, this was validated without an exception since it was intended to be registered as a global filter. In the end, however, it made more sense to register it as an attribute filter on the `TopicController` itself, thus automatically registering it with all derived controllers. Given that, it should throw an explicit exception if a developer attempts to add it to any other type of controller. This maintains consistency with the `[ValidateTopic]` attribute, which performs the same validation.[TopicResponseCache] not applied to TopicController
1 parent dd783d6 commit 1b4b94e
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
0 commit comments