Click here to Skip to main content
15,891,621 members
Articles / Desktop Programming / XAML

Diagnostic Explorer

Rate me:
Please Sign up or sign in to vote.
4.93/5 (41 votes)
29 Nov 2010LGPL315 min read 82.5K   1.5K   120  
A .NET library and website which allows developers to expose and view arbitrary diagnostic information about their .NET processes.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>

	<configSections>
		<section name="diagnosticExplorer" type="DiagnosticExplorer.DiagnosticSectionHandler, DiagnosticExplorer" />
	</configSections>

	<diagnosticExplorer>
		<!-- Used to differentiate between multiple instances -->
		<!-- of the same application running on a machine (optional) -->
		<instanceName>Dev</instanceName>

		<!-- Auto or Manual port number selection -->
		<portMode>Auto</portMode>

		<!-- Port to use when portMode is Manual -->
		<port>12345</port>

		<!-- True if this application should register itself with the diagnostics web service -->
		<autoRegister>true</autoRegister>
	</diagnosticExplorer>

	<system.serviceModel>
		<client>
			<!-- Registration Service endpoint -->
			<endpoint address="http://localhost/Diagnostics/RegistrationService.svc"
			 binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_Config"
			 contract="DiagnosticExplorer.IRegistrationService" name="WSHttpBinding_IRegistrationService" />

			<!-- MSMQ endpoint -->
			<endpoint address="net.msmq://localhost/private/Diagnostics"
			 binding="netMsmqBinding" bindingConfiguration="msmqBinding" contract="DiagnosticExplorer.ILogWriter"
			 name="LoggingService_MSMQ" />

			<!-- NetTcp endpoint exposed by the windows service (demonstration only) -->
			<endpoint address="net.tcp://localhost:23456/LoggingService"
			 binding="netTcpBinding" bindingConfiguration="NetTcpClientConfig"
			 contract="DiagnosticExplorer.ILogWriter" name="LoggingService_WinServ" />

			<!-- WSHttp endpoint exposed by the Web Service -->
			<endpoint address="http://localhost/Diagnostics/LoggingService.svc"
			 binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_Config"
			 contract="DiagnosticExplorer.ILogWriter" name="LoggingService_Web" />
		</client>

		<bindings>
			<netMsmqBinding>
				<binding name="msmqBinding" receiveTimeout="1.00:00:00">
					<security mode="None">
						<transport msmqAuthenticationMode="None" />
					</security>
				</binding>
			</netMsmqBinding>
			<netTcpBinding>
				<binding name="NetTcpClientConfig" openTimeout="00:00:05" maxReceivedMessageSize="2147483647">
					<readerQuotas maxStringContentLength="209715200" />
					<security mode="None" />
				</binding>
			</netTcpBinding>
			<wsHttpBinding>
				<binding name="WSHttpBinding_Config">
					<security mode="Message" />
				</binding>
			</wsHttpBinding>
		</bindings>

	</system.serviceModel>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Software Developer
United Kingdom United Kingdom
I am a software developer originally from Auckland, New Zealand. I have lived and worked in London since 2005.

Comments and Discussions