Skip to content

Commit

Permalink
feat: add HideEventAttribute to hide in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Nov 18, 2024
1 parent 7ed16d7 commit 95062c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public string GenerateFor(IEnumerable<EventTag> tags)
.Assembly
.GetExportedTypes()
.Where(IsClassWithAttribute<EventNameAttribute>)
.Where(t => !IsClassWithAttribute<HideEventAttribute>(t))
.Where(HasEventTags(tags.ToList()))
.Select(CreateEventInformation);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Be.Vlaanderen.Basisregisters.EventHandling
{
using System;

[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class HideEventAttribute : Attribute
{ }
}

0 comments on commit 95062c7

Please sign in to comment.