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); }
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); } }
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); }