Topics: CAB & Smart Client Software Factory
Aug 11, 2005 at 5:43 AM
originally posted by: krijn

see subject 'Bug in commands'
(sorry, was supposed to be a reply)

I've got things working now.

1. Created my own CommandService
=> overidden EventCatalog property (after setting it overridable in the CAB) and pointed this to the workitems localeventcatalog (instead of global)
2. created my own CommandHandler (and Status) attributes by inheriting EventSubscriptionAttribute
=> Sub new(commandName, scope as EventScope)
mybase.New("cmd://" & commandName,scope) (or "qry://" & ..)
3. removed the common ICommandService from the Services in the workitem constructor and added the custom commandService

I think it proves that CAB is flexible but also that there's no way of extending it. There are just too few methods, properties, .. that are overridable (like in every app block) which always ends up in a mess when new versions are out.