public static async Task <ITable> GenerateTableAsync(this ITableCollection tableCollection, Authentication authentication) { if (tableCollection.GetService(typeof(ITableCategoryCollection)) is ITableCategoryCollection tableCategoryCollection) { var category = await tableCategoryCollection.GetRandomTableCategoryAsync(); return(await category.GenerateTableAsync(authentication)); } throw new NotImplementedException(); }
public void GetService() { Console.Write(tables.GetService(typeof(ICremaHost))); }