Step3:
ErrorHandlerElement
ErrorHandlerElement
The error handler element defines the extension behavior such that ErrorHandler can be defined against a service behavior.
01 | using System; |
02 | using System.ServiceModel.Configuration; |
03 | |
04 | namespace WcfServiceLibrary1 |
05 | { |
06 | public class ErrorHandlerElement : BehaviorExtensionElement |
07 | { |
08 | protected override object CreateBehavior() |
09 | { |
10 | return new ErrorHandler(); |
11 | } |
12 | |
13 | public override Type BehaviorType |
14 | { |
15 | get |
16 | { |
17 | return typeof (ErrorHandler); |
18 | } |
19 | } |
20 | } |
21 | } |
No comments:
Post a Comment