|
|
|
@ -2,6 +2,7 @@ |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Reflection; |
|
|
|
using System.Runtime.InteropServices; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using JetBrains.Annotations; |
|
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
@ -201,7 +202,7 @@ public abstract class AbpApplicationBase : IAbpApplication |
|
|
|
var abpHostEnvironment = scope.ServiceProvider.GetRequiredService<IAbpHostEnvironment>(); |
|
|
|
var configuration = scope.ServiceProvider.GetRequiredService<IConfiguration>(); |
|
|
|
|
|
|
|
if (OperatingSystem.IsMacOS() || OperatingSystem.IsLinux() || OperatingSystem.IsWindows()) |
|
|
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX) || RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) |
|
|
|
{ |
|
|
|
return abpHostEnvironment.IsDevelopment() && configuration.GetValue<bool?>("Abp:Telemetry:IsEnabled") != false; |
|
|
|
} |
|
|
|
|