Beispiel #1
0
        protected ServiceLogMethodOptions GetLoggerForAnyCall(int iMethodMRef, out LogMethodEntry logger)
        {
            MEntry me = _mRefs[iMethodMRef];
            ServiceLogMethodOptions o = me.LogOptions;

            logger = o == ServiceLogMethodOptions.None ? null : _serviceHost.LogMethodEnter(me.Method, o);
            return(o);
        }
Beispiel #2
0
 protected void OnCallException(int iMethodMRef, Exception ex, LogMethodEntry e)
 {
     if (e != null)
     {
         _serviceHost.LogMethodError(e, ex);
     }
     else
     {
         MEntry me = _mRefs[iMethodMRef];
         _serviceHost.LogMethodError(me.Method, ex);
     }
 }
Beispiel #3
0
        protected ServiceLogMethodOptions GetLoggerForNotDisabledCall(int iMethodMRef, out LogMethodEntry logger)
        {
            if (_impl == null || _impl.Status == RunningStatus.Disabled)
            {
                throw new ServiceNotAvailableException(_typeInterface);
            }
            MEntry me = _mRefs[iMethodMRef];
            ServiceLogMethodOptions o = me.LogOptions;

            o     &= ServiceLogMethodOptions.CreateEntryMask;
            logger = o == ServiceLogMethodOptions.None ? null : _serviceHost.LogMethodEnter(me.Method, o);
            return(o);
        }