Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created August 2, 2022 17:49
/// <summary>
/// Registers the middleware and adds the arguments for filtering
/// </summary>
public sealed class UseFilteringAttribute : ObjectFieldDescriptorAttribute
{
// Notice the [CallerLineNumber] attribute here 👇
public UseFilteringAttribute(Type? filterType = null, [CallerLineNumber] int order = 0)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment