I am trying to create a new Enterprise Library (5.0) block for use within my company. It basically has a format similar to the one below in the config file:
<manager type="ManagerType..." name="TheManager>
<worker type="HTMLWorker" Name="Web Worker" url="http...."/>
<scheduler type="FixedIntervalScheduler" name="Fixed Scheduler" interval="5min"/>
<notifier type="EmailNotifier" name="Emailer" to="firstname.lastname@example.org"/>
<worker type="FTPWorker" Name="FTP Worker" url="ftp...."/>
<scheduler type="WeekdayScheduler" name="Weekday Scheduler" dayOfWeek="Tuesday"/>
<notifier type="FileNotifier" name="Logger" to="c:\logs\some.log"/>
All the "types" are defined as actual classes and dlls as in a normal config file.
The problem is I am able to get the Manager Class created fine, but when i tried to add the "jobs" section (I am adding to the config file piecemeal) to get it working, I first got an error that the name attribute could not be found. I removed the
name from jobs in the config file and then got an error that the "jobs element could only occur once in that section". All the info I can find on custom config leads to a self built config file. Not one that works with Enterprise Library.
The Ent Lib labs are helpful, but use the
<group><add .... /> </group>
paradigm. Not what i am looking for.