internal LogMethodEntryError( int lsn, LogMethodEntry e, Exception ex ) { Debug.Assert( e != null && ex != null ); LSN = lsn; _entry = e; _exception = ex; }
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 void LogEndCallWithValue( LogMethodEntry e, object retValue ) { Debug.Assert( e != null ); e._returnValue = retValue; _serviceHost.LogMethodSuccess( e ); }
protected void LogEndCall( LogMethodEntry e ) { Debug.Assert( e != null ); _serviceHost.LogMethodSuccess( e ); }
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 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; }