@@ -26,21 +26,22 @@ for detailed information on how to configure the client to meet your requirement
2626-------------------------------------
2727 ASP.NET Core Integration
2828-------------------------------------
29- You must import the "Exceptionless" namespace and add the following code to register and configure
30- the ExceptionlessClient inside of the ConfigureServices method:
29+ You must import the "Exceptionless" namespace and add the following code to register and configure the Exceptionless client:
3130
32- services.AddExceptionless("API_KEY_HERE") ;
31+ using Exceptionless ;
3332
34- In order to start gathering unhandled exceptions, you will need to register the Exceptionless
35- middleware in the Configure method like this:
33+ var builder = WebApplication.CreateBuilder(args);
34+ builder.Services.AddExceptionless("API_KEY_HERE");
3635
37- app.UseExceptionless();
36+ In order to start gathering unhandled exceptions, you will need to register the Exceptionless middleware in your application
37+ like this after building your application:
3838
39- Alternatively, you can also use the different overloads of the AddExceptionless method
40- for different configuration options.
39+ var app = builder.Build();
40+ app.UseExceptionless();
4141
42- Please visit the documentation https://exceptionless.com/docs/clients/dotnet/sending-events/
43- for examples on sending events to Exceptionless.
42+ Alternatively, you can use different overloads of the AddExceptionless method for other configuration options.
43+ Please visit the documentation at https://exceptionless.com/docs/clients/dotnet/sending-events/ for additional examples
44+ and guidance on sending events to Exceptionless.
4445
4546-------------------------------------
4647 Manually reporting an exception
0 commit comments