개정판 43e1d368
issue #0000 코드 정리
Change-Id: I7c8ba4ef6d78a7e4f51b72f226507cddac722939
KCOM_API/ServiceDeepView.svc.cs | ||
---|---|---|
99 | 99 |
sysInfo.HostName = url.VALUE; |
100 | 100 |
} |
101 | 101 |
|
102 |
url = SystemInfoSet.Where(data => data.PROPERTY == "Port").FirstOrDefault();
|
|
103 |
if (url != null)
|
|
102 |
var port = SystemInfoSet.Where(data => data.PROPERTY == "Port").FirstOrDefault();
|
|
103 |
if (port != null)
|
|
104 | 104 |
{ |
105 |
sysInfo.HostPort = url.VALUE;
|
|
105 |
sysInfo.HostPort = port.VALUE;
|
|
106 | 106 |
} |
107 | 107 |
|
108 |
url = uc.PROPERTIES.Where(data => data.TYPE == "STAMP").FirstOrDefault();
|
|
109 |
if(url != null)
|
|
108 |
var stamp = uc.PROPERTIES.Where(data => data.TYPE == "STAMP").FirstOrDefault();
|
|
109 |
if(stamp != null)
|
|
110 | 110 |
{ |
111 |
sysInfo.STAMP = url.VALUE; |
|
111 |
sysInfo.STAMP = stamp.VALUE; |
|
112 |
|
|
112 | 113 |
} |
114 |
|
|
115 |
var stampContents = uc.PROPERTIES.Where(data => data.TYPE == "STAMP_CONTENTS"); |
|
116 |
|
|
117 |
if (stampContents?.Count() > 0) |
|
118 |
{ |
|
119 |
sysInfo.STAMP_CONTENTS = stampContents.ToDictionary(x => x.PROPERTY, x => x.VALUE); |
|
120 |
} |
|
121 |
|
|
113 | 122 |
return sysInfo; |
114 | 123 |
} |
115 | 124 |
} |
내보내기 Unified diff