Updates for Regular expressions

This commit is contained in:
Eric Fontana
2014-07-21 14:44:04 -04:00
parent d76ac433c8
commit f0855b72ef
10 changed files with 38 additions and 4 deletions

View File

@@ -90,7 +90,13 @@ namespace TimberWinR.ServiceHost
{
TimberWinR.Manager manager = new TimberWinR.Manager(_args.ConfigFile);
var outputRedis = new RedisOutput(new string[] { "tstlexiceapp006.vistaprint.svc", "tstlexiceapp007.vistaprint.svc" }, _cancellationToken);
// logaggregator.vistaprint.svc
//var outputRedis = new RedisOutput(new string[] { "tstlexiceapp006.vistaprint.svc", "tstlexiceapp007.vistaprint.svc" }, _cancellationToken);
// var outputRedis = new RedisOutput(new string[] { "prdlexicelgs001.vistaprint.svc" }, _cancellationToken);
var outputRedis = new RedisOutput(new string[] { "logaggregator.vistaprint.svc" }, _cancellationToken);
_nlogListener = new TcpInputListener(_cancellationToken, 5140);
outputRedis.Connect(_nlogListener);

View File

@@ -32,6 +32,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="RapidRegex.Core">
<HintPath>..\packages\RapidRegex.Core.1.0.0.0\lib\net40\RapidRegex.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />

View File

@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="RapidRegex.Core" version="1.0.0.0" targetFramework="net45" />
<package id="Topshelf" version="3.1.3" targetFramework="net45" />
</packages>

View File

@@ -37,14 +37,16 @@ namespace TimberWinR.Outputs
try
{
RedisClient client = new RedisClient(_redisHosts[_redisHostIndex], _port, _timeout);
_redisHostIndex++;
if (_redisHostIndex >= _redisHosts.Length)
_redisHostIndex = 0;
return client;
}
catch (Exception)
catch (Exception ex)
{
}
numTries++;
}
@@ -129,9 +131,9 @@ namespace TimberWinR.Outputs
}
}
}
catch(Exception)
catch(Exception ex)
{
// Got an error, try the other hosts
LogManager.GetCurrentClassLogger().Error(ex);
}
}
}

Binary file not shown.

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>TimberWinR</id>
<version>1.0.0.0</version>
<title>TimberWinR</title>
<authors>efontana</authors>
<owners>efontana</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Description</description>
<copyright>Copyright © 2014</copyright>
<dependencies>
<dependency id="csredis" version="1.4.7.1" />
<dependency id="Newtonsoft.Json" version="6.0.3" />
<dependency id="NLog" version="3.1.0.0" />
</dependencies>
</metadata>
<files>
<file src="lib\net40\Interop.MSUtil.dll" target="lib\net40\Interop.MSUtil.dll" />
<file src="lib\net40\TimberWinR.dll" target="lib\net40\TimberWinR.dll" />
</files>
</package>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.