Software Engineer
JF-Expert Member
- Dec 20, 2014
- 344
- 137
Natumia FileSystemWatcher kwenye asp.net web application ku monitor changes zote zinazotokea kwenye folder "c:\MyDir".
Implementation
1. Nime create class MonitorDirectory ,
Outcome
1. Nimefanya test kupitia IDE (Visual studio) test server, behavior zote zimekuwa triggered vizuri. Naweza ku paste file na event (OnCreated) ikawa fired vizuri tuu. Development enevironment ni Windows 7 Pro.
2. Nimeweka kwenye production server (Windows 2008 R2 Enterprise) imefail ku trigger event zozote zile.
Karibu wadau tu share experience.
Implementation
1. Nime create class MonitorDirectory ,
- ina static method RegisterMonitor() method, ndani nime instantiate FileSystemWatcher object, kisha ni register events kama vile OnCreated(object sender, FileSystemEventArgs e)
Outcome
1. Nimefanya test kupitia IDE (Visual studio) test server, behavior zote zimekuwa triggered vizuri. Naweza ku paste file na event (OnCreated) ikawa fired vizuri tuu. Development enevironment ni Windows 7 Pro.
2. Nimeweka kwenye production server (Windows 2008 R2 Enterprise) imefail ku trigger event zozote zile.
Karibu wadau tu share experience.