8. Consider using the ErrorHandlerBehavior attribute on the service, both for promoting exceptions to fault contracts and for automatic error logging:
当提升异常为错误契约,以及自动错误日志时,都可以考虑在服务上使用ErrorHandlerBehavior属性:
[ErrorHandlerBehavior]
class MyService : IMyContract
{...}
9. Consider using the CallbackErrorHandlerBehaviorAttribute on the callback client, both for promoting exceptions to fault contracts and for automatic
error logging:
当提升异常为错误契约,以及自动错误日志时,考虑在回调客户端上使用CallbackErrorHandlerBehaviorAttribute:
[CallbackErrorHandlerBehavior(typeof(MyClient))]
class MyClient : IMyContractCallback
{
public void OnCallabck()
{...}
}