예제 #1
0
        public ReturnCode Enable()
        {
            ReportStack.Start();

            DDS.ReturnCode result = uResultToReturnCode(
                User.Entity.Enable(rlReq_UserPeer));

            ReportStack.Flush(this, result != ReturnCode.Ok);
            return(result);
        }
예제 #2
0
        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);
        }
예제 #3
0
        private static string GetReturnCodePrefix(DDS.ReturnCode returnCode)
        {
            string prefix;

            if ((int)returnCode == -1)
            {
                prefix = "";
            }
            else
            {
                prefix = returnCodeNames[(int)returnCode] + ": ";
            }
            return(prefix);
        }
예제 #4
0
 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);
 }
예제 #5
0
 internal static extern void Report(ReportType type, string reportContext, string fileName, int lineNo, DDS.ReturnCode reportCode, int domainId, bool stack, string description);