exceptionless / Exceptionless.Net

Exceptionless clients for the .NET platform
https://exceptionless.com
Other
554 stars 142 forks source link

How to register app.UseExceptionless("key") in .net core2.1 IHostBuilder? #229

Closed wmowm closed 3 years ago

wmowm commented 4 years ago

  .net core2.1 IHostBuilder does not have IApplicationBuilder, how can I register the service to the application?

niemyjski commented 4 years ago

Both 2.0 and 3.0 have public void Configure(IApplicationBuilder app) in Startup.cs. We do need to make some extensions for IHostBuilder.

niemyjski commented 4 years ago

@wmowm how are you wanting to configure via the IHostBuilder builder. I just created multiple apps using the .net 3.1 sdk and both had the IApplicationBuilder. Just trying to get your expectations.