Skip to content

gest01/clrmd-middleware

Repository files navigation

clrmd-middleware

ASP.NET Core Middleware for introspecting current dotnet process using Microsoft.Diagnostics.Runtime

Call services.AddClrMd() in your ConfigureServices Method:

public void ConfigureServices(IServiceCollection services)
{
    services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
    services.AddClrMd();
}

Register the Middleware in your Configure-Method by calling app.UseClrMd()

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    if (env.IsDevelopment())
    {
       app.UseDeveloperExceptionPage();
    }
    else
    {
      app.UseHsts();
    }

    app.UseClrMd();

    app.UseHttpsRedirection();
    app.UseMvc();
}

calling the diagnostics endpoint under http://localhost:56868/diagnostics

Generating Memory Dumps

http://localhost:56868/diagnostics/dump

About

ASP.NET Core Middleware for introspecting the current dotnet process using Microsoft.Diagnostics.Runtime

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages