Hi there,
The issue IOC-ISSUE-137 was just created by nmpham (nmpham).
Key: IOC-ISSUE-137
Summary: RegisterCustomDependencies and Interceptors
Type: Bug
Importance: Medium
Description:
(from http://forum.castleproject.org/viewtopic.php?t=5003)
I've an issue with Interceptors dependencies, trying to set a property value
If the property is included in the config file, everything is fine.
If i use RegisterCustomDependencies with a Hashtable, the
Container.Resolve("myinterceptor") set the correct value to MyProperty.
Now i create a class
[Interceptor(typeof(MyInterceptor))] class C {
public virtual Method1() {
}
}
when i step into MyInterceptor.Intercept, MyProperty is = nothing.
So i download the code and i've found this in AbstractProxyFactory.cs
IInterceptor interceptor = (IInterceptor)
handler.Resolve(CreationContext.Empty);
If i change it to
handler.Resolve(new CreationContext(handler, new Hashtable()));
it does resolve correctly, and set MyProperty to my custom value.
So is it a bug, or it is intentionnal ?
Affected RC3 and previous (tested on RC3 and RC1)
For more, see
http://support.castleproject.org/projects/IOC/issues/view/IOC-ISSUE-137
--
donjon
by Castle Stronghold
http://www.castle-donjon.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Development List" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---