任务命令模式与模式等通知观察器一起使用

编程入门 行业动态 更新时间:2024-10-11 11:20:55
本文介绍了任务命令模式与模式等通知观察器一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在寻找一种使用通知系统实现任务系统的好方法。 如果有人知道任何好的资源,我可以看一下处理和组合这两种模式。 我很抱歉,我没有任何示例代码,但一旦我知道如何实现我会发布一些代码。 我有三个界面: IProgram Attach(); Detatch(); 通知(); ITask 执行(); INotify 更新(); 一个事件: NotifyEventArgs 课程: Notifier 更新() obserState AbstractTask NotifyEvent 执行(); TypesOfTask FileProgram GetState() SetState() subjectState

I am looking for a good way to implement a Task System with a Notification System. If anyone is aware of any good resources I can look at for handling and combining both patterns. I am sorry in advance, I do not have any sample code, but once I have a good idea how implement I will post some code. I have three interface: IProgram Attach(); Detatch(); Notify(); ITask Execute(); INotify Update(); one Event: NotifyEventArgs Classes: Notifier Update() obserState AbstractTask NotifyEvent Execute(); TypesOfTask FileProgram GetState() SetState() subjectState

解决方案

这些会让你开始吗? C#NotificationCenter [ ^ ] 用C#编写的通知客户端和服务器 [ ^ ] 和 stackoverflow/questions/2267916/notification-model-pattern [ ^ ] 不确定这个,但你永远不会知道,直到你尝试:-) http:/ /www.madleets/Thread-C-VB-NET-Madleets-Chatbox-Notification-Project [ ^ ] 记住模式非常好但是不能总是严格应用开箱即用 - 这个练习真正重要的一面是避免反模式 - 这是关于反模式和最差实践 [ ^ ] Will these get you started? C# NotificationCenter[^] Notification Client and Server Written in C#[^] and stackoverflow/questions/2267916/notification-model-pattern[^] Not sure about this one but you never know until you try :-) www.madleets/Thread-C-VB-NET-Madleets-Chatbox-Notification-Project[^] Remember patterns are (very) good but can't always be rigidly applied "out of the box" - the really important side to this exercise will be to avoid "anti-patterns" - here's another CP article on that Anti Patterns and Worst Practices[^]

更多推荐

任务命令模式与模式等通知观察器一起使用

本文发布于:2023-11-17 09:09:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1609567.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模式   命令   通知

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!