Exemplo n.º 1
0
        private void AppendUsageData(UsageMessage message)
        {
            message.AppData = new System.Collections.Generic.List <UsageApplicationData>();

            if (_uptime != null)
            {
                message.AppData.Add(new UsageApplicationData()
                {
                    Key   = "UPTIME",
                    Value = _uptime.Value.TotalHours.ToString(CultureInfo.InvariantCulture.NumberFormat),
                });
            }

            ImageServerData data = new ImageServerData();

            message.AppData.Add(new UsageApplicationData()
            {
                Key   = "TOTAL_STUDIES",
                Value = data.TotalStudiesCount.ToString(CultureInfo.InvariantCulture.NumberFormat),
            });

            message.AppData.Add(new UsageApplicationData()
            {
                Key   = "ACTIVE_DEVICES",
                Value = data.ActiveDeviceCount.ToString(CultureInfo.InvariantCulture.NumberFormat),
            });
        }
Exemplo n.º 2
0
        private void AppendUsageData(UsageMessage message)
        {
            message.AppData = new System.Collections.Generic.List<UsageApplicationData>();

            if (_uptime!=null)
            {
                message.AppData.Add(new UsageApplicationData()
                {
                    Key = "UPTIME",
                    Value = _uptime.Value.TotalHours.ToString(CultureInfo.InvariantCulture.NumberFormat),
                });
            }

            ImageServerData data = new ImageServerData();
            message.AppData.Add(new UsageApplicationData() {Key = "TOTAL_STUDIES",
                Value = data.TotalStudiesCount.ToString(CultureInfo.InvariantCulture.NumberFormat),
            });

            message.AppData.Add(new UsageApplicationData()
            {
                Key = "ACTIVE_DEVICES",
                Value = data.ActiveDeviceCount.ToString(CultureInfo.InvariantCulture.NumberFormat),
            });
        }