Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 12th, 2012, 09:18 AM
Authorized User
 
Join Date: Jul 2007
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.





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





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