Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > C# 4.0 aka C# 2010 General Discussion
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# 4.0 aka C# 2010 General Discussion Discussions about the C# 4.0, C# 4, Visual C# 2010 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 4.0 aka C# 2010 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 12th, 2012, 09:18 AM
Authorized User
Points: 135, Level: 2
Points: 135, Level: 2 Points: 135, Level: 2 Points: 135, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2007
Location: , , .
Posts: 29
Thanks: 2
Thanked 0 Times in 0 Posts
Default Maintaining a global list for a service.

Hello everyone,

i am in the process of developing a Windows service that will monitor a hot folder for .xml file(s). Once a file is dropped, the service will call another application passing this .xml.

Now here's where I am stuck.
Instead of sending the .xml file to another app, I want to have a list or any collection for that matter, to which the .xml file name will be added. This will happen as soon as the .xml file is dropped in the hot folder. Then from there the service will process the list of files.

If it is of any help, this service is developed using FileSystemWatcher with a lot of help from the online community (thanks for all the people who have written great/helpful tutorials explaining FileSystemWatcher).

So the idea basically is to maintain a list of files to process, with the list being updated, the file being removed from the list as soon as it is passed on to other application, constantly.

How do I do this.
Any help is greatly appreciated.

Regards.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
very simple service that returns a list of names... ? samvan BOOK: Professional ASP.NET Design Patterns 1 November 5th, 2010 07:09 PM
Web Service Get List ID with VBSCRIPT to filter on for UpdateListItems ismailc SharePoint Development 2 January 27th, 2010 08:32 AM
How to declare the global variable in global.asax? calyn_gately ASP.NET 3.5 Basics 0 August 6th, 2008 08:06 PM
Maintaining Global variables tenikiwon Beginning PHP 1 June 19th, 2003 02:11 PM



All times are GMT -4. The time now is 10:10 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.