Hi im trying to create an async Function that receive a List from objects and invoke a method from an interface implementation. I dont know how to invoke my function sending the specific method:
My function:
 private async Task ExecuteCallNoveltySATFunction(List<SATFileTemp> novelties, Func<List<SATDataFieldDTO>, Task<ExternalServicesConsume>> noveltyFunction)
    {
        //send paginate
        int pageSize = 10;
        for (int i = 0; i < novelties.Count; i += pageSize)
        {
            var items = novelties.Skip(i).Take(pageSize);
            var resp = await noveltyFunction.Invoke(items.Select(x => x.DataSATFieldDTO).ToList());
        }
    }
A posibly method to send:
 public async Task<ExternalServicesConsume> InclusionMember(List<SATDataFieldDTO> data)
    {
       //do something.....
    }
How to invoke it??
await ExecuteCallNoveltySATFunction(myListExample, async(???) => { 
            ?????
            });
