Hi, I have a short question. If i use the CreateInterfaceProxyWithTarget -
method, the result is a proxy
that allows to call and intercept all Methods defined by the specified
interface. But i have the
following situation:
interface ITask
{
void doStart();
}
[TaskImplementor]
class MyTask : ITask
{
doStart() {};
[TaskImplementorMethod]
void doStartToo() {};
}
later on...
void TaskRegistry.doExecuteTask(ITask i_pTask)
{
//Proxy the task to intercept the doStart() or all other method marked as
[TaskImplementorMethod]
}
So now i want to intercept a method that is not provided by the Proxy
generated by CreateInterfaceProxyWithTarget. I understand this
but how can i do it to intercept other methods, unknown by the interface
since my TaskRegistry doesn't know anything about
the concrete Task Implementations. If i use
CreateClassProxy(i_pTask.GetType()) the result is a correct object of type
MyTask, but it
is empty. So i thought if there would be a method like
CreateClassProxyWithTarget(i_pTask.GetType(),i_pTask) it could solve my
problem, but there isn't one :-) Maybe there is another way to do this?
Thanks
Volker
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---