Skip to content

Commit 33059ed

Browse files
committed
Updates to Hosting to use the default instance so ToExceptionless() works
1 parent fbce433 commit 33059ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Platforms/Exceptionless.Extensions.Hosting/ExceptionlessExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Reflection;
33
using Exceptionless.Dependency;
44
using Exceptionless.Extensions.Hosting;
@@ -50,7 +50,7 @@ public static IServiceCollection AddExceptionless(this IServiceCollection servic
5050
/// <returns></returns>
5151
public static IServiceCollection AddExceptionless(this IServiceCollection services, Action<ExceptionlessConfiguration> configure = null) {
5252
return services.AddSingleton(sp => {
53-
var client = new ExceptionlessClient();
53+
var client = ExceptionlessClient.Default;
5454

5555
var config = sp.GetService<IConfiguration>();
5656
if (config != null)

0 commit comments

Comments
 (0)