Re: System.Diagnostics.Switch problems
From: Michael Riggio (michael.spam.riggio_at_spam.unisys.spam.com)
Date: 09/15/04
- Next message: Nak: "Re: Decompiler.NET reverse engineers your CLS compliant code"
- Previous message: Nak: "Re: Decompiler.NET reverse engineers your CLS compliant code"
- In reply to: Dmitriy Lapshin [C# / .NET MVP]: "Re: System.Diagnostics.Switch problems"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Sep 2004 10:52:44 -0400
Here's the link:
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdiagnosticsswitchclassctortopic.asp?frame=true
It certainly sounds like it will automagically update when the file gets
changed.
Thanks,
-Mike
"Dmitriy Lapshin [C# / .NET MVP]" <x-code@no-spam-please.hotpop.com> wrote
in message news:ubtznBxmEHA.3428@TK2MSFTNGP09.phx.gbl...
> Michael,
>
> I have reviewed the MSDN docs on the Switch class and I cannot find
anything
> saying that this class is capable of automatic monitoring of the changes
to
> the configuration file. Could you post a link or at least a topic name?
>
> --
> Sincerely,
> Dmitriy Lapshin [C# / .NET MVP]
> Bring the power of unit testing to the VS .NET IDE today!
> http://www.x-unity.net/teststudio.aspx
>
> "Michael Riggio" <michael.spam.riggio@spam.unisys.spam.com> wrote in
message
> news:%236hO3AqmEHA.1152@TK2MSFTNGP11.phx.gbl...
> > Has anyone tried to utilize this class? Unfortunately, the MSDN
> > documentation is pretty weak for this class and the examples they
provide
> > are pretty lame.
> >
> > I created a class that derives from System.Diagnostics.Switch and it
> > successfully retrieves the correct value from the configuration file.
> > According to the documentation, the class is supposed to listen for file
> > changes and will automatically update the in-memory values when the
> > configuration file gets updated; however, I haven't been able to get
this
> to
> > work... my derived class instance always returns the original value
> > initially read through the configuration file.
> >
> > Any suggestions on how to use the Switch class without hacking at it (by
> > this I mean doing my own file listening and reparsing the file when it
> gets
> > updated).
> >
> > Thanks,
> > -Mike
> >
> >
>
- Next message: Nak: "Re: Decompiler.NET reverse engineers your CLS compliant code"
- Previous message: Nak: "Re: Decompiler.NET reverse engineers your CLS compliant code"
- In reply to: Dmitriy Lapshin [C# / .NET MVP]: "Re: System.Diagnostics.Switch problems"
- Messages sorted by: [ date ] [ thread ]