You can use the new extension method instead of declaring this func:

```c#
subApp.Use((context, next) =>
{
      Stuff
});
```