S
Steve - DND
Is it possible to do something like what this chapter excerpt shows, except
for just a regular non-remoting bunch of code?
http://www.microsoft.com/mspress/books/sampchap/6172a.asp
The reason I ask, is that I have implemented everything as is from the
chapter above, but none of my attribute code gets called. I have the
attribute tag declared right above my class, such that it looks like...
[ExceptionLogging("filepath...")]
public class Foo() {...
Unfortunately nothing seems to happen. I have tried setting breakpoints in
the code, but it never seems to hit. Exceptions are being thrown, but
they're not being caught by this facility. This is leading me to believe
that the solution above is only for remoting. Does anyone have any tips on
making it work for non-remoting code, or articles that show an implement of
this. I believe this all takes after Aspect Oriented Programming, and seems
like it could be hugely beneficial for error handling and such.
Thanks,
Steve
for just a regular non-remoting bunch of code?
http://www.microsoft.com/mspress/books/sampchap/6172a.asp
The reason I ask, is that I have implemented everything as is from the
chapter above, but none of my attribute code gets called. I have the
attribute tag declared right above my class, such that it looks like...
[ExceptionLogging("filepath...")]
public class Foo() {...
Unfortunately nothing seems to happen. I have tried setting breakpoints in
the code, but it never seems to hit. Exceptions are being thrown, but
they're not being caught by this facility. This is leading me to believe
that the solution above is only for remoting. Does anyone have any tips on
making it work for non-remoting code, or articles that show an implement of
this. I believe this all takes after Aspect Oriented Programming, and seems
like it could be hugely beneficial for error handling and such.
Thanks,
Steve