System.Diagnostics.Switch problems

From: Michael Riggio (michael.spam.riggio_at_spam.unisys.spam.com)
Date: 09/14/04


Date: Tue, 14 Sep 2004 17:17:15 -0400

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



Relevant Pages

  • Re: System.Diagnostics.Switch problems
    ... It certainly sounds like it will automagically update when the file gets ... >> successfully retrieves the correct value from the configuration file. ... >> According to the documentation, the class is supposed to listen for file ... >> this I mean doing my own file listening and reparsing the file when it ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [SLE] SuSE Watcher
    ... it resorted back to dialup. ... > only configuration file. ... There seems to be no documentation on the ... Then modify the file with a console editing tool (i.e. Vim, Emacs, ...
    (SuSE)
  • Re: Using VS2005/C++, how to create a function call (directed) graph or cross ref. table
    ... The key problem is that it ... I don't use the wizard myself, just edit the configuration file. ... Not so much to manage documentation, as to analyze your program structure ... it is not practical for producing a total function calls graph (or ...
    (microsoft.public.vc.language)
  • Re: Configuring pptpd confusing
    ... Documentation seems to imply a /etc/pptpd.conf file, ... with the installation. ... for when clients connect. ...
    (Debian-User)
  • Re: Using VS2005/C++, how to create a function call (directed) graph or cross ref. table
    ... I don't use the wizard myself, just edit the configuration file. ... Not so much to manage documentation, ... it is not practical for producing a total function calls graph ... You can use call browser, which is part of VS2005 IDE. ...
    (microsoft.public.vc.language)