Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created August 8, 2022 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/098aee2cf3a60885ce8fdd465d3fc2b0 to your computer and use it in GitHub Desktop.
Save lgolubyev/098aee2cf3a60885ce8fdd465d3fc2b0 to your computer and use it in GitHub Desktop.
var builder = WebApplication.CreateBuilder(args);
builder.Services.ConfigureRouteHandlerJsonOptions(options =>
{
//Ignore Cycles
options.SerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment