Back to All

I have customized the GetAssociatesStats hook, but now need to customize GetAssociateStats

I can register GetAssociatesStats using

services.AddTransient<IHook<GetAssociatesStatsHookRequest, GetAssociatesStatsHookResponse>, GetAssociatesStats>();

, and have been able to implement a customized hook. I can not register

services.AddTransient<IHook<GetAssociateStatsHookRequest, GetAssociateStatsHookResponse>, GetAssociateStats>();

I would assume that the hook template would be

public class GetAssociateStats : IHook<GetAssociateStatsHookRequest, GetAssociateStatsHookResponse>
{
    public GetAssociateStats()
    {
    }

    public GetAssociateStatsHookResponse Invoke(GetAssociateStatsHookRequest request, Func<GetAssociateStatsHookRequest, GetAssociateStatsHookResponse> func)
    {
        return func(request);
    }
}

but GetAssociateStatsHookRequest and GetAssociateStatsHookResponse are not recognized. Perhaps I am missing an assembly or namespace reference. Can anyone help with this?