using SharedLibrary.Dtos; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SharedLibrary.Services { public class MetaService { private static List>>> MetaActions = new List>>>(); public static void AddMeta(Func>> metaAction) { MetaActions.Add(metaAction); } public static async Task> GetMeta(int clientId) { var meta = new List(); foreach (var action in MetaActions) meta.AddRange(await action(clientId)); return meta; } } }