protected virtual Boolean ExecuteApi() { try { ReturnCode = MvxSock.Access(ref serverId, ApiData.Method); return(EvaluateMvxSockAccessReturnCode()); } catch (Exception exception) { Trace.WriteLine(exception.ToString()); } TraceUtilities.WriteMethodError(MethodBase.GetCurrentMethod()); ReturnCode = null; return(false); }
protected virtual Boolean ExecuteApi() { try { ReturnCode = MvxSock.Access(ref serverId, ApiData.Method); if (ReturnCode.Value == 0) { return(true); } else { Trace.WriteLine(String.Format("The 'MvxSock.Access' method retured the following non zero code. {0}", ReturnCode)); } } catch (Exception exception) { Trace.WriteLine(exception.ToString()); } TraceUtilities.WriteMethodError(MethodBase.GetCurrentMethod()); return(false); }
protected override bool ProcessApiResults() { DataObjectCollection = new T_DataObjectCollection(); try { while (MvxSock.More(ref serverId)) { if (!ProcessApiResult()) { return(false); } ReturnCode = MvxSock.Access(ref serverId, null); if (ReturnCode.Value != 0) { Trace.WriteLine(String.Format("The 'MvxSock.Access' method retured the following non zero code. {0}", ReturnCode)); String errorText = GetErrorText(); Trace.WriteLineIf((errorText != null), errorText); return(false); } } return(true); } catch (Exception exception) { Trace.WriteLine(exception); } TraceUtilities.WriteMethodError(MethodBase.GetCurrentMethod()); return(false); }