--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/MqTulYtQkZgJ.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
|
1
2
3
4
5
6
7
8
9
10
11 |
public class CustomTypedFactoryComponentSelector : DefaultTypedFactoryComponentSelector{ protected override string GetComponentName(MethodInfo method, object[] arguments) { if(method.Name == "GetById" && arguments.Length == 1 && arguments[0] is string) { return (string)arguments[0]; } return base.GetComponentName(method, arguments); }} |