@@ -26,21 +26,22 @@ for detailed information on how to configure the client to meet your requirement
26
26
-------------------------------------
27
27
ASP.NET Core Integration
28
28
-------------------------------------
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:
31
30
32
- services.AddExceptionless("API_KEY_HERE") ;
31
+ using Exceptionless ;
33
32
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");
36
35
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:
38
38
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();
41
41
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.
44
45
45
46
-------------------------------------
46
47
Manually reporting an exception
0 commit comments