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