Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
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
Posted
Updated 26-Feb-14 6:52am
v3

1 solution

Will these get you started?

C# NotificationCenter[^]

Notification Client and Server Written in C#[^]

and

http://stackoverflow.com/questions/2267916/notification-model-pattern[^]

Not sure about this one but you never know until you try :-)
http://www.madleets.com/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[^]
 
Share this answer
 
Comments
Member 10622146 27-Feb-14 11:33am    
Implementing Commands in the Observer Pattern:
This is good source I found. It gives you the steps how to implement commands (such as tasks in my case), into the observer pattern (notification system).

http://patterns.instantinterfaces.nl/current/Refactoring-and-Design-Patterns-PAT-OBS.html#PAT-OBS-ALT-001

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900