|
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
<section name="PollingService" type="Demo.Framework.PollingConfigSection, Demo.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" allowDefinition="Everywhere" allowExeDefinition="MachineToApplication" restartOnExternalChanges="true" />
</configSections>
<appSettings>
<add key="ReaderId" value="1"/>
<add key="Odyssey" value="2"/>
<!-- Control Command: Data: ReaderId : ReaderType -->
<add key="FactoryID" value="1"/>
<add key="PollingPackets" value="35: :1:2"/>
<add key="SerialPort" value="COM1"/>
<add key="DefaultPollingDelay" value="50"/>
<add key="MaxPollingDelay" value="30000"/>
<add key="TareWeight" value=".5"/>
<add key="Speed" value="38400"/>
<add key="EntryPointId" value="5"/>
<add key="ProcessPointId" value="6"/>
<add key="SellingPointId" value="7"/>
<add key="ConfigXml" value="D:\Nirosh\Development\Demo\DemoMain\Demo.Core.Controls\Data\Xmls\SetupWizard.Xml"/>
</appSettings>
<connectionStrings>
<!-- SQL Server -->
<add name="DemoCoreEntities" connectionString="metadata=res://*/ModelDemo.csdl|res://*/ModelDemo.ssdl|res://*/ModelDemo.msl;provider=System.Data.SqlClient;provider connection string="Data Source=sab-srv-mds001;Initial Catalog=Demo_Core;User ID=sa;Password=abc@123;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient"/>
<!--<add name="Demo_Core" providerName="System.Data.SqlClient" connectionString="server=sab-srv-mds001;user=sa; password=abc@123;database=Demo_Core;"/>-->
</connectionStrings>
<PollingService>
<ports >
<clear />
<port name="COM5"
readerids="8"
speed="38400"
readertype="2"
pollingcommand="35"
pollingdata=""
pollingdelay="10"
readertimeout ="20"
maxpollingdelay="600000"/>
<!--<port name="COM7"
readerids="6|7|9|10|11"
speed="38400"
readertype="2"
pollingcommand="35"
pollingdata=""
pollingdelay="1"
readertimeout ="2"
maxpollingdelay="600000"/>-->
<port name="COM6"
readerids="1|3|5"
speed="38400"
readertype="2"
pollingcommand="35"
pollingdata=""
pollingdelay="10"
readertimeout ="20"
maxpollingdelay="600000"/>
</ports>
</PollingService>
<log4net>
<appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
<file value=".\\Errors\\Exception.log"/>
<appendToFile value="true"/>
<maximumFileSize value="256KB"/>
<maxSizeRollBackups value="10"/>
<!--DEBUG < INFO < WARN < ERROR < FATAL-->
<param name="Threshold" value="WARN"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%d [%t] %-5p %c - %m%n"/>
</layout>
</appender>
<root>
<level value="ALL"/>
<appender-ref ref="RollingFile"/>
</root>
</log4net>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</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.
In-depth coverage of Microsoft .Net, Cloud and many other cutting-edge Technologies.
-
The Mandelbrot set – someone has called it the thumb-print of God – is one of the most beautiful and remarkable discoveries in the entire history of mathematics. My profile picture is generated with that equation.
You may contact Nirosh for Consultations, Code Reviews and Architecture Guide Workshops via c_nir*o*sh@hotmail.com (Remove * to use)
View Nirosh L.W.C.'s profile on LinkedIn
Other Links