Configuration locking
- From: "Ralf" <Ralf@xxxxxxxxxxxxxxxx>
- Date: Tue, 14 Oct 2008 18:27:47 +0200
Hi,
in an application I'm using a non trivial configuration,
implemented with classes from the System.Configuration namespace.
The parameters will be written to the app.exe.config file.
My application is stored on a network device and can be used from
more than one user at the same time.
To prevent the parameters for competing access, I want to lock
the parameters during one user is editing these parameters.
The ConfigurationElement class has lock functionality: ConfigurationElement.LockItem.
But I can't find any background informations about the locking mechanism.
Does anyone works with the locking mechanism?
I have a few questions about this:
1. Can I use LockItem for multi user locking?
2. How can I get the information which user is locking the parameters at the moment?
3. How can I manually unlock the parameters if a lock is lost?
4. How does it work?
5. Is there a better way for configuration locking?
Regards
Ralf
.
- Follow-Ups:
- Re: Configuration locking
- From: Cowboy \(Gregory A. Beamer\)
- Re: Configuration locking
- Prev by Date: Re: Structured Exception handling in .Net
- Next by Date: Linq to Sql Filtering child table
- Previous by thread: Re: How do you tell if the .Net Framework 2.0 is installed?
- Next by thread: Re: Configuration locking
- Index(es):
Relevant Pages
|