public AddMethod ( |
||
method | ||
return | void |
private void GatherTransactionAttributes(TransactionConfig config, Type implementation) { MethodInfo[] methods = implementation.GetMethods( BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); foreach (MethodInfo method in methods) { if (method.IsDefined(typeof(RequiresTransactionAttribute), true)) { config.AddMethod(method); } } }
private void GatherTransactionAttributes(TransactionConfig config, Type implementation) { MethodInfo[] methods = implementation.GetMethods( BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic ); foreach(MethodInfo method in methods) { if (method.IsDefined( typeof(RequiresTransactionAttribute), true )) { config.AddMethod( method ); } } }