Notify Configuration

Normally customization only happens within indexusNetSharedCache provider were you add or remove your server nodes.

ConfigSection

	<configSections>
		<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
		<section name="indexusNetSharedCache" type="MergeSystem.Indexus.WinServiceCommon.Configuration.Client.IndexusProviderSection, MergeSystem.Indexus.WinServiceCommon"/>
		<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
			<section name="MergeSystem.Indexus.Notify.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
		</sectionGroup>
	</configSections>

AppSettings Stuff

	<appSettings>
		<!--Version Number, same like in assemblies-->
		<add key="SharedCacheVersionNumber" value="2.0.0.140" />
		<!--Should information be logged-->
		<add key="LoggingEnable" value="1"  />
		<!--Location of Cache Service-->
		<add key="ServiceCacheIpAddress" value="127.0.0.1"  />
		<!--Location of Cache Service, the port number-->
		<add key="ServiceCacheIpPort" value= "48888" />
		<!--Should information be logged-->
		<add key="LoggingEnable" value="1"  />
		<!--
			The URL to receive newest version number: http://sharedcache.indeXus.Net
			on localhost its defined fix for port: 6652
		-->
		<add key="VersionUrl" value="http://sharedcache.indexus.net/Version.asmx"  />
	</appSettings>

NLog section

	<nlog autoReload="true" throwExceptions="true">
		<targets async="true">
			<target name="shared_cache_general"  type="File" layout="${longdate}|${level:uppercase=true}|${aspnet-request:item=logSession}|${message}" filename="C:\temp\logs\notify\${date:format=yyyy-MM-dd}_shared_cache_general_log.txt"/>
			<target name="shared_cache_traffic"  type="File" layout="${longdate}|${level:uppercase=true}|${aspnet-request:item=logSession}|${message}" filename="C:\temp\logs\notify\${date:format=yyyy-MM-dd}_shared_cache_traffic_log.txt"/>
			<target name="shared_cache_tracking" type="File" layout="${longdate}|${level:uppercase=true}|${aspnet-request:item=logSession}|${message}" filename="C:\temp\logs\notify\${date:format=yyyy-MM-dd}_shared_cache_tracking_log.txt"/>
			<target name="shared_cache_sync"   type="File" layout="${longdate}|${level:uppercase=true}|${aspnet-request:item=logSession}|${message}" filename="C:\temp\logs\notify\${date:format=yyyy-MM-dd}_shared_cache_sync_log.txt"/>
		</targets>
		<rules>
			<logger name="General" minlevel="Debug" writeTo="shared_cache_general" final="true"/>
			<logger name="Traffic" minlevel="Debug" writeTo="shared_cache_traffic" final="true"/>
			<logger name="Tracking" minlevel="Debug" writeTo="shared_cache_tracking" final="true"/>
			<logger name="Sync" minlevel="Debug" writeTo="shared_cache_sync" final="true"/>
			<logger name="*" minlevel="Debug" writeTo="shared_cache_general"/>
			<logger name="*" minlevel="Info" writeTo="shared_cache_general"/>
		</rules>
	</nlog>


Applicaiton Settings

	<applicationSettings>
		<MergeSystem.Indexus.Notify.Properties.Settings>
			<!-- DO NOT MODIFY THIS DATA HERE -->
			<setting name="MergeSystem_Indexus_Notify_version_Version" serializeAs="String">
				<value>http://localhost:6652/Version.asmx</value>
			</setting>
		</MergeSystem.Indexus.Notify.Properties.Settings>
	</applicationSettings>

Provider Configuration

	<indexusNetSharedCache defaultProvider="IndexusSharedCacheProvider">
		<servers>
			<add key="SrvZh02"  ipaddress="192.168.212.37" port="48888" />
			<add key="SrvZh03"  ipaddress="192.168.212.21" port="48888" />
		</servers>
		<providers>
			<add
        name="IndexusSharedCacheProvider"
        type="MergeSystem.Indexus.WinServiceCommon.Provider.Cache.IndexusSharedCacheProvider, MergeSystem.Indexus.WinServiceCommon"
           >
			</add>
		</providers>
	</indexusNetSharedCache>

Download

sample config file

Last edited Feb 13, 2008 at 6:24 PM by ronischuetz, version 3

Comments

No comments yet.