Skip to content

Commit

Permalink
add generic RequestHandlerExperimentAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasSamuelsson committed Nov 16, 2023
1 parent ff78543 commit 8024d9b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,12 @@ private Type[] GetExperimentalHandlerTypes<TRequest, TResponse>(List<IRequestHan
.ToArray();
}
}

[AttributeUsage(AttributeTargets.Class)]
public class RequestHandlerExperimentAttribute<TBaselineHandler> : RequestHandlerExperimentAttribute
{
public RequestHandlerExperimentAttribute() : base(typeof(TBaselineHandler))
{
}
}
}

0 comments on commit 8024d9b

Please sign in to comment.