public ReturnCode Enable() { ReportStack.Start(); DDS.ReturnCode result = uResultToReturnCode( User.Entity.Enable(rlReq_UserPeer)); ReportStack.Flush(this, result != ReturnCode.Ok); return(result); }
internal static void Report(DDS.ReturnCode returnCode, string description) { ReportType reportType = ReportType.OS_ERROR; StackFrame callStack = new StackFrame(1, true); Report(reportType, getContext(callStack), getFileName(callStack), callStack.GetFileLineNumber(), returnCode, GetReturnCodePrefix(returnCode) + description); }
private static string GetReturnCodePrefix(DDS.ReturnCode returnCode) { string prefix; if ((int)returnCode == -1) { prefix = ""; } else { prefix = returnCodeNames[(int)returnCode] + ": "; } return(prefix); }
protected ReturnCode DisableCallbacks() { DDS.ReturnCode result = DDS.ReturnCode.Ok; ReportStack.Start(); lock (this) { if (this.rlReq_isAlive) { byte triggered = User.Entity.DisableCallbacks(rlReq_UserPeer); if (triggered != 0) { wait = true; WaitListenerRemoved(); } } else { result = DDS.ReturnCode.AlreadyDeleted; } } ReportStack.Flush(this, result != DDS.ReturnCode.Ok); return(result); }
internal static extern void Report(ReportType type, string reportContext, string fileName, int lineNo, DDS.ReturnCode reportCode, int domainId, bool stack, string description);