-
Notifications
You must be signed in to change notification settings - Fork 2
Diagnostics
Michal Mrnuštík edited this page Apr 19, 2021
·
2 revisions
We also have a separate package that can be used for diagnosing issues in the system. These tools are provided in EventSourced.Diagnostics.Web
NuGet package. By adding this package to the project and registering in the Startup
class you are provided with a web pages that can be found under the _diagnostics/EventSourced/AggregateTypesList URL of your project after starting.
Note: The diagnostics pages use DotVVM framework for viewing of the data. To learn more go to: https://www.dotvvm.com/
This page provides you information regarding the state of your aggregates and the state of your registered automatic projections.
public void ConfigureServices(IServiceCollection services)
{
...
services.AddEventSourced(options => options
.AddEntityFrameworkSupport(
o => o.UseSqlServer(Configuration.GetConnectionString("EventStore")))
.UseEntityFrameworkEventStore()
.UseInMemoryProjectionStore()
.UseEntityFrameworkSnapshotStore())
services.AddEventSourcedDiagnostics();
...
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
...
app.UseEventSourcedDiagnostics();
}
...
}