public void SetAllMethodsConfiguration( Type type, ServiceLogMethodOptions option ) { foreach( var m in CK.Reflection.ReflectionHelper.GetFlattenMethods( type ).Where( m => !m.IsSpecialName ) ) { _methods[m] = option; } }
public void SetConfiguration( PropertyInfo p, ServiceLogMethodOptions option ) { MethodInfo mG = p.GetGetMethod(); if( mG != null ) SetConfiguration( mG, option ); MethodInfo mS = p.GetSetMethod(); if( mS != null ) SetConfiguration( mS, option ); }
public void SetMethodGroupConfiguration( Type type, string methodName, ServiceLogMethodOptions option ) { foreach( var m in CK.Reflection.ReflectionHelper.GetFlattenMethods( type ).Where( m => m.Name == methodName ) ) { _methods[m] = option; } }
public LogMethodConfig( string methodName, string returnType, List<ILogParameterInfo> p, ServiceLogMethodOptions logOptions, bool doLog ) { _doLog = doLog; LogOptions = logOptions; Name = methodName; ReturnType = returnType; _parameters = p; _parametersEx = new CKReadOnlyListOnIList<ILogParameterInfo>( _parameters ); }
public void SetAllPropertiesConfiguration( Type type, ServiceLogMethodOptions option ) { foreach( var p in CK.Reflection.ReflectionHelper.GetFlattenProperties( type ) ) SetConfiguration( p, option ); }
public void SetConfiguration( MethodInfo m, ServiceLogMethodOptions option ) { _methods[m] = option; }
private void ProcessLogOptions( ServiceLogMethodOptions logOptions ) { DoLogErrors = ((logOptions & ServiceLogMethodOptions.LogError) == ServiceLogMethodOptions.LogError); DoLogEnter = ((logOptions & ServiceLogMethodOptions.Enter) == ServiceLogMethodOptions.Enter); DoLogParameters = ((logOptions & ServiceLogMethodOptions.LogParameters) == ServiceLogMethodOptions.LogParameters); DoLogCaller = ((logOptions & ServiceLogMethodOptions.LogCaller) == ServiceLogMethodOptions.LogCaller); DoLogLeave = ((logOptions & ServiceLogMethodOptions.Leave) == ServiceLogMethodOptions.Leave); DoLogReturnValue = ((logOptions & ServiceLogMethodOptions.LogReturnValue) == ServiceLogMethodOptions.LogReturnValue); }
public void SetLogOptions( MethodInfo method, ServiceLogMethodOptions opt ) { MEntry[] _mRefs = ServiceProxyBase.MethodEntries; for( int i = 0; i < _mRefs.Length; ++i ) if( _mRefs[i].Method == method ) { _mRefs[i].LogOptions = opt; return; } Assert.Fail( "Unknown Method" ); }
public void SetLogOptions( string methodName, ServiceLogMethodOptions opt ) { MethodInfo m = typeof( IChoucrouteService ).GetMethod( methodName ); Assert.That( m, Is.Not.Null ); SetLogOptions( m, opt ); }