R
RodBillett
I guess I am just brain dead, but I cant figure this out for the world.
in our asp.net application, I have a base page that ensures some logic is
performed (or has been performed in the past) for some page. This logic
consists of some setup and validation processes.
I am wanting our customers to be able to extend this functionality if they
would like but i dont want them to have source access to our code.
In reality - what I would like is for my base page to contain some pre and
post type events. Like PreDoSomething( SpecialEventArgs ) and
PostDoSomething( SpecialEventArgs ). Then if I detect that the customer has
placed the special dll in the bin directory, i could use reflection to
dynamically create an instance of an object and hook up to the desired
events.
The customers dll then has their custom extension logic in it. they could
even cancel the event execution if they so desire by returning a flag from
the event (throwing an error, etc)
Could anyone point me in the proper direction on this? I am not sure if
reflection is the correct way to go. I have looked at some of the
httpmodule example, but they appear to be specifically related to
application/session events and not to stuff related to a developers
application logic.
thanks in advance
Rod
in our asp.net application, I have a base page that ensures some logic is
performed (or has been performed in the past) for some page. This logic
consists of some setup and validation processes.
I am wanting our customers to be able to extend this functionality if they
would like but i dont want them to have source access to our code.
In reality - what I would like is for my base page to contain some pre and
post type events. Like PreDoSomething( SpecialEventArgs ) and
PostDoSomething( SpecialEventArgs ). Then if I detect that the customer has
placed the special dll in the bin directory, i could use reflection to
dynamically create an instance of an object and hook up to the desired
events.
The customers dll then has their custom extension logic in it. they could
even cancel the event execution if they so desire by returning a flag from
the event (throwing an error, etc)
Could anyone point me in the proper direction on this? I am not sure if
reflection is the correct way to go. I have looked at some of the
httpmodule example, but they appear to be specifically related to
application/session events and not to stuff related to a developers
application logic.
thanks in advance
Rod