|
|
|
@ -200,7 +200,13 @@ public abstract class AbpApplicationBase : IAbpApplication |
|
|
|
using var scope = ServiceProvider.CreateScope(); |
|
|
|
var abpHostEnvironment = scope.ServiceProvider.GetRequiredService<IAbpHostEnvironment>(); |
|
|
|
var configuration = scope.ServiceProvider.GetRequiredService<IConfiguration>(); |
|
|
|
return abpHostEnvironment.IsDevelopment() && configuration.GetValue<bool?>("Abp:Telemetry:IsEnabled") != false; |
|
|
|
|
|
|
|
if (OperatingSystem.IsMacOS() || OperatingSystem.IsLinux() || OperatingSystem.IsWindows()) |
|
|
|
{ |
|
|
|
return abpHostEnvironment.IsDevelopment() && configuration.GetValue<bool?>("Abp:Telemetry:IsEnabled") != false; |
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
//TODO: We can extract a new class for this
|
|
|
|
|