Update Endpoints.cs

This commit is contained in:
Sipke Schoorstra 2022-08-28 15:02:18 +02:00
parent 2bd4a9b6e9
commit 7f839555cf

View file

@ -25,7 +25,7 @@ public class ElsaEndpoint<TRequest, TResponse> : Endpoint<TRequest, TResponse> w
}
}
public class ElsaEndpoint<TRequest> : Endpoint<TRequest> where TRequest : notnull
public class ElsaEndpoint<TRequest> : Endpoint<TRequest> where TRequest : notnull, new()
{
protected void ConfigurePermissions(params string[] permissions)
{