我有一个实现Mediatr.IRequest的query类,如下所示: public class ExportDataQuery : IRequest<IAsyncEnumerable<byte[]>> {} 查询处理程序的实现如下: public class ExportDataQueryHandler : IRequestHandler<ExportDataQuery, IAsyncEnumerable<byte[]>> public async IAsyncEnumerable&
到目前为止,最好的方法是返回IAsyncEnumerable<IAsyncEnumerable<T>>而不是IAsyncEnumerable<T>,然后将其扁平化。其基本目标是允许一个人从子方法中获取一部分IAsyncEnumerable,而不必发疯。下面的Counting()方法是我的尝试。{
public static async IAs
我一直在玩IAsyncEnumerable 8.0中的Blazor和C#特性。是否可以使用IAsyncEnumerable并在Razor页面中逐步显示带有数据的标记?readonly string[] games = new[] { "Call of Duty", "Legend of Zelda", "Super Mario 64" };
public async IAsyncEnumerable