private void Ping_FTR_Job(out int result) { string ServerName = "192.168.0.34"; string ServerPort = "49942"; result = -3; ForTheRecordServiceAgent iftrs = new ForTheRecordServiceAgent(); try { if (!ServiceChannelFactories.IsInitialized) { InitializeServiceChannelFactories(ServerName, Convert.ToInt32(ServerPort)); } result = iftrs.Ping(Constants.ForTheRecordApiVersion); } catch (EndpointNotFoundException) { //MessageBox.Show("EnpointNotFoundEx: " + ex.ToString()); } catch (Exception) { //MessageBox.Show("Ex: " + ex.ToString()); } //return result; }