?????????????Web.Config????App.Config?????????

<section name="ExManager" type="ExManagement.Config.ExSectionHandler?? ExManagement.Config" />

??????????????ExManagement.Config.ExSectionHandler????????ExManager???y??

?????????????ErrorCodeSource??ConnectionString?????????

????ErrorCodeSource?????????????????????????????????????????????????????????????????ErrorCodeSource?????XML????DB??

????ConnectionString??????????????????????????λ?á???ErrorCodeSource???????????XML???????XML?????FullName;??ErrorCodeSource???????????DB????????????????????????

????DataTable??????????ü????????????????

?????????????? ???????????????????????????????Name??Type??ReturnMode???AlertType?????

????Name???????????????????????????????????е???????????????????????????????????ò???????????????????

????Type??????????????????????????Type=”ClassName?? AssemblyName”??????????ExHandlerBase??С?

????ReturnMode????????????????????????????????????????ExReturnMode?????????Exception/ExceptionString/ErrorCode/ErrorString???????????????/?????????????/?????????/????????????

????AlertType???????????????????????????????ExAlertType?????????None/WebUI/WinUI??

????< LogHandler>??????????????????????????0??????< LogHandler>????

????Type??????????????????????????????????Type=”ClassName?? AssemblyName”????????????IExLogHandler????

????ConnectionString??????????????????ü??????????????λ?á?

????DataTable??????????ü????????????????

????ExManagement.Interface??

??????????IExLogHandler??I Message??????????ExHandlerBase????????????????Щ??????????????????????-3??

???????-3

??????????ExHandlerBase?????м??????????????????????

public void LoadLogHandler(ExManagerConfig.ExHandlerConfig config)

{

m_ExHandlerConfig = config;

foreach (ExManagerConfig.LogHandlerConfig logConfig in config.LogConfigColletion)

{

object exLogHandler = System.Activator.CreateInstance(Type.GetType(logConfig.Type));

lstLogHandler.Add(exLogHandler);

}

}

???????????????????иy?????????????????????????????LogHandler????????????????????????С?

????ExManagement.MessageHandler??

?????e?????????IMessage??????????????????????WinUI??WebUI?е????????????WinFormMessage??WebMessage?????????System.Web.Dll??System. Windows.Forms.Dll???????-4??