예제 #1
0
        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);
        }
예제 #2
0
        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;
        }