Skip to content

Instantly share code, notes, and snippets.

endpoints.MapGet("/resources/logo.png", async context =>
{
context.Response.ContentType = "image/png";
using (var fileStream = File.OpenRead("./wwwroot/resources/logo.png"))
{
await fileStream.CopyToAsync(context.Response.Body);
}
});
using QuickGraph;
using QuickGraph.Algorithms;
using System.Collections.Generic;
using System.Linq;
namespace NA.Linq.Extensions
{
public static class HierarchicalOrderByExtensions
{
public delegate bool IsDescendantAncestorRelationDelegate<T>(T descendantCandidate, T ancestorCandidate);