public Exceptionless.Core.Models.Data.EnvironmentInfo ToEnvironmentInfo() { var environmentInfo = new Exceptionless.Core.Models.Data.EnvironmentInfo { Architecture = Architecture, AvailablePhysicalMemory = AvailablePhysicalMemory, CommandLine = CommandLine, IpAddress = IpAddress, MachineName = MachineName, OSName = OSName, OSVersion = OSVersion, ProcessId = ProcessId, ProcessMemorySize = ProcessMemorySize, ProcessName = ProcessName, ProcessorCount = ProcessorCount, RuntimeVersion = RuntimeVersion, ThreadId = ThreadId, ThreadName = ThreadName, TotalPhysicalMemory = TotalPhysicalMemory }; if (ExtendedData != null && ExtendedData.Count > 0) { environmentInfo.Data.AddRange(ExtendedData.ToData()); } return(environmentInfo); }
public Exceptionless.Core.Models.Data.EnvironmentInfo ToEnvironmentInfo() { var environmentInfo = new Exceptionless.Core.Models.Data.EnvironmentInfo { Architecture = Architecture, AvailablePhysicalMemory = AvailablePhysicalMemory, CommandLine = CommandLine, IpAddress = IpAddress, MachineName = MachineName, OSName = OSName, OSVersion = OSVersion, ProcessId = ProcessId, ProcessMemorySize = ProcessMemorySize, ProcessName = ProcessName, ProcessorCount = ProcessorCount, RuntimeVersion = RuntimeVersion, ThreadId = ThreadId, ThreadName = ThreadName, TotalPhysicalMemory = TotalPhysicalMemory }; if (ExtendedData != null && ExtendedData.Count > 0) environmentInfo.Data.AddRange(ExtendedData.ToData()); return environmentInfo; }