개정판 b557b377
issue #1157 : 웹서비스 Hub Connection Error Exception 로직 변경.
Change-Id: Id6be0591a1f72fd3485bba57ab04d9c64f531849
KCOM/Services/BaseServices.cs | ||
---|---|---|
694 | 694 |
|
695 | 695 |
public void HubSet() |
696 | 696 |
{ |
697 |
|
|
698 | 697 |
// 허브 연결 구성 |
699 | 698 |
var hubConnection = new HubConnection(CommonLib.Common.GetConfigString("HubAddress", "URL", "", App.isExternal)); |
700 | 699 |
IHubProxy MarkusLicenseProxy = hubConnection.CreateHubProxy("MarkusLicenseHub"); |
... | ... | |
707 | 706 |
{ |
708 | 707 |
Console.WriteLine("There was an error opening the connection:{0}", |
709 | 708 |
task.Exception.GetBaseException()); |
709 |
throw task.Exception.GetBaseException(); |
|
710 | 710 |
} |
711 | 711 |
else |
712 | 712 |
{ |
... | ... | |
735 | 735 |
if (task.IsFaulted) |
736 | 736 |
{ |
737 | 737 |
Console.WriteLine("ConnectionMarkus :: There was an error calling send: {0}", task.Exception.GetBaseException()); |
738 |
throw task.Exception.GetBaseException(); |
|
738 | 739 |
} |
739 | 740 |
else |
740 | 741 |
{ |
... | ... | |
756 | 757 |
break; |
757 | 758 |
} |
758 | 759 |
} |
759 |
}); |
|
760 |
}).Wait();
|
|
760 | 761 |
|
761 | 762 |
// 서버에서 클라이언트 호출 ( 프로그램 구동여부 ) : 라이센스 체크 후 응답 ( 반환값 : true, false ) |
762 | 763 |
//MarkusLicenseProxy.On<bool>("IsConnection", status => |
내보내기 Unified diff