개정판 eb5cdefc
issue #000 daelim merged
Change-Id: I7b584bc84d283ab0c9415fd0b7ddbea8362d60a3
MarkupToPDF/Common/GetUserSign.cs | ||
---|---|---|
4 | 4 |
using System.Collections.Generic; |
5 | 5 |
using System.IO; |
6 | 6 |
using System.Linq; |
7 |
using System.Net; |
|
7 | 8 |
using System.Runtime.InteropServices; |
8 | 9 |
using System.ServiceModel; |
9 | 10 |
using System.Text; |
... | ... | |
45 | 46 |
_binding.CloseTimeout = new TimeSpan(0, 5, 0); |
46 | 47 |
_binding.SendTimeout = new TimeSpan(0, 5, 0); |
47 | 48 |
_binding.TextEncoding = System.Text.Encoding.UTF8; |
48 |
_binding.TransferMode = TransferMode.Buffered;
|
|
49 |
_binding.TransferMode = TransferMode.Buffered; |
|
49 | 50 |
|
50 |
string sBaseServiceURL = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", ""); |
|
51 |
string localdomain = CommonLib.Common.GetConfigString("HOST_DOMAIN", "DOMAIN", ""); |
|
52 |
var ipaddress = CommonLib.DNSHelper.GetDnsAdress(); |
|
53 |
bool isExternal = false; |
|
54 |
try |
|
55 |
{ |
|
56 |
var hostName = Dns.GetHostEntry(ipaddress).HostName; |
|
57 |
|
|
58 |
if (!hostName.EndsWith(localdomain)) |
|
59 |
{ |
|
60 |
// 외부 사용자 |
|
61 |
isExternal = true; |
|
62 |
} |
|
63 |
} |
|
64 |
catch (Exception ex) |
|
65 |
{ |
|
66 |
System.Diagnostics.Debug.WriteLine(ex.ToString()); |
|
67 |
} |
|
68 |
string sBaseServiceURL = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal); |
|
69 |
//CommonLib.Common.GetConfigString("BaseClientAddress", "URL", ""); |
|
51 | 70 |
|
52 | 71 |
_EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc", sBaseServiceURL)); |
53 | 72 |
|
내보내기 Unified diff