Delegate Usage : Business Applications

后端 未结 8 1236
青春惊慌失措
青春惊慌失措 2021-01-03 02:46

Background

Given that \'most\' developers are Business application developers, the features of our favorite programming languages are used in the context of what we

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 03:05

    Other than GUI...

    1. event dispatching; some of my business apps are quite complicated, talk to hardware devices, and rely on event queues to keep everything in synch. Delegates are used by these apps for event dispatching.
    2. business rules; some of my business apps have a partial soft-coding ability, where certain events trigger certain rules that are kept in a database. Delegates (in a Dictionary) are used to execute the rules on the client-side. (Plug-ins could be supported, but current are not needed).
    3. general secondary threads (using the SafeThread class, of course!)

提交回复
热议问题