This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |