|
XMLConfigure Apps to Use a Custom Publisher
Listing 3. You can implement a custom publisher without making any changes in a client program. Instead, you simply modify App.config with the name of the assembly and the name of the class you've created. <?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="exceptionManagement" type=
"Microsoft.ApplicationBlocks.
ExceptionManagement.
ExceptionManagerSectionHandler,Microsoft.
ApplicationBlocks.ExceptionManagement" />
</configSections>
<exceptionManagement>
<publisher mode="on" assembly="csEMABCustomPub"
type="csEMABCustomPub.ExceptionPublisher"
/>
</exceptionManagement>
</configuration>
|