public CoyoteTelemetryClient(Configuration configuration) { this.Enabled = configuration.EnableTelemetry && !configuration.RunAsParallelBugFindingTask; #if NETFRAMEWORK this.Framework = ".NET Framework"; #else this.Framework = RuntimeInformation.FrameworkDescription; #endif if (this.Enabled) { if (string.IsNullOrEmpty(configuration.TelemetryServerPath)) { // then server is running in-proc (as we do for unit testing) if (InProcServer is null) { InProcServer = new CoyoteTelemetryServer(false); } return; } else { // run the server out of proc. this.Name = $"coyote{Process.GetCurrentProcess().Id}"; _ = this.ConnectToServer(configuration.TelemetryServerPath); } } }
public CoyoteTelemetryClient(Configuration configuration) { this.Enabled = configuration.EnableTelemetry && !configuration.RunAsParallelBugFindingTask; this.Framework = configuration.PlatformVersion; if (this.Enabled) { if (string.IsNullOrEmpty(configuration.TelemetryServerPath)) { // then server is running in-proc (as we do for unit testing) if (InProcServer == null) { InProcServer = new CoyoteTelemetryServer(false); } return; } else { // run the server out of proc. this.Name = $"coyote{Process.GetCurrentProcess().Id}"; _ = this.ConnectToServer(configuration.TelemetryServerPath); } } }
public CoyoteTelemetryClient(Configuration configuration) { this.Enabled = configuration.EnableTelemetry && !configuration.RunAsParallelBugFindingTask; if (string.IsNullOrEmpty(configuration.DotnetFrameworkVersion)) { #if NETSTANDARD2_1 this.Framework = "netstandard2.1"; #elif NETSTANDARD2_0 this.Framework = "netstandard2.0"; #elif NETSTANDARD this.Framework = "netstandard"; #elif NETCOREAPP3_1 this.Framework = "netcoreapp3.1"; #elif NETCOREAPP this.Framework = "netcoreapp"; #elif NET48 this.Framework = "net48"; #elif NET47 this.Framework = "net47"; #elif NETFRAMEWORK this.Framework = "net"; #endif } else { this.Framework = configuration.DotnetFrameworkVersion; } if (this.Enabled) { if (string.IsNullOrEmpty(configuration.TelemetryServerPath)) { // then server is running in-proc (as we do for unit testing) if (InProcServer == null) { InProcServer = new CoyoteTelemetryServer(false); } return; } else { // run the server out of proc. this.Name = $"coyote{Process.GetCurrentProcess().Id}"; _ = this.ConnectToServer(configuration.TelemetryServerPath); } } }