diff --git a/src/OperationInvoker/Abstractions/IOperationHandler.cs b/src/OperationInvoker/Abstractions/IOperationHandler.cs index 9f1221b..8552b88 100644 --- a/src/OperationInvoker/Abstractions/IOperationHandler.cs +++ b/src/OperationInvoker/Abstractions/IOperationHandler.cs @@ -4,7 +4,7 @@ namespace ESCd.Extensions.OperationInvoker.Abstractions; /// Describes a type that handles an operation of type . /// The type of handled. -[DynamicallyAccessedMembers( DynamicallyAccessedMemberTypes.PublicMethods )] +[DynamicallyAccessedMembers( DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.PublicMethods )] public interface IOperationHandler where TOperation : IOperation { @@ -17,7 +17,7 @@ public interface IOperationHandler /// Describes a type that handles an operation of type , that returns a result of type . /// The type of handled. /// The type of the result of invoking the handler. -[DynamicallyAccessedMembers( DynamicallyAccessedMemberTypes.PublicMethods )] +[DynamicallyAccessedMembers( DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.PublicMethods )] public interface IOperationHandler where TOperation : IOperation {