Skip to content

allrameest/EsiNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EsiNet

NuGet EsiNet

NuGet EsiNet.AspNetCore

NuGet EsiNet.Polly

An ASP.NET Core middleware for ESI.

<esi:include src="http://localhost:57780/cart/buy.html" />

Install

NuGet

Install-Package EsiNet.AspNetCore

Services

AddEsiNet adds all services for EsiNet.

public void ConfigureServices(IServiceCollection services)
{
    services
        .AddEsiNet()
        .AddMvc();
}

Usage

UseEsiNet adds the middleware that parses esi tags.

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    app
        .UseEsiNet()
        .UseMvc();
}

ESI Support

Tags

  • Include
  • Try
  • Comment
  • Remove
  • Choose
  • Vars