コード例 #1
0
ファイル: WcfServiceClient.cs プロジェクト: dongliang/Scut
 /// <summary>
 /// 远端调用
 /// </summary>
 /// <param name="route"></param>
 /// <param name="param"></param>
 /// <param name="remoteAddress"></param>
 /// <param name="buffer"></param>
 /// <returns></returns>
 public bool TryCallRemote(string route, string param, string remoteAddress, out byte[] buffer)
 {
     param  = param ?? "";
     buffer = null;
     if (_serviceChannel != null)
     {
         buffer = _serviceChannel.CallRemote(route, param, remoteAddress);
         return(buffer != null);
     }
     return(false);
 }