Skip to content

Commit 9a94bc7

Browse files
committed
UPD to amqpnetlite 2.0.0
1 parent 99f8ba5 commit 9a94bc7

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

CliNetliteInstaller/CliNetliteInstaller.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ProductVersion>3.10</ProductVersion>
77
<ProjectGuid>f13fb7ef-d892-4229-a1eb-8b595d71d64e</ProjectGuid>
88
<SchemaVersion>2.0</SchemaVersion>
9-
<OutputName>cli-netlite-1.1.0.4</OutputName>
9+
<OutputName>cli-netlite-1.3.0.0</OutputName>
1010
<OutputType>Package</OutputType>
1111
</PropertyGroup>
1212
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">

CliNetliteInstaller/Product.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<?define version="1.1.0.4"?>
2+
<?define version="1.3.0.0"?>
33
<?define UpgradeCode="a580c04f-caec-4e18-9134-c4b8f1c8f1be"?>
44
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
55
<Product Id="*"

ClientLib/ClientLib.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
4545
</PropertyGroup>
4646
<ItemGroup>
47-
<Reference Include="Amqp.Net, Version=1.2.0.0, Culture=neutral, PublicKeyToken=905a7b1e6458e0c3, processorArchitecture=MSIL">
48-
<HintPath>..\packages\AMQPNetLite.1.2.3\lib\net45\Amqp.Net.dll</HintPath>
47+
<Reference Include="Amqp.Net, Version=2.0.0.0, Culture=neutral, PublicKeyToken=905a7b1e6458e0c3, processorArchitecture=MSIL">
48+
<HintPath>..\packages\AMQPNetLite.2.0.0\lib\net45\Amqp.Net.dll</HintPath>
4949
</Reference>
5050
<Reference Include="NDesk.Options, Version=0.2.1.0, Culture=neutral, processorArchitecture=MSIL">
5151
<HintPath>..\packages\NDesk.Options.0.2.1\lib\NDesk.Options.dll</HintPath>

ClientLib/CoreClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private void SetUpCliLogging(Options options)
8383
if((options as BasicOptions).LogLib.ToUpper() == "TRANSPORT_FRM")
8484
{
8585
Trace.TraceLevel = TraceLevel.Frame;
86-
Trace.TraceListener = (f, a) => Console.WriteLine(
86+
Trace.TraceListener = (l, f, a) => Console.WriteLine(
8787
DateTime.Now.ToString("[hh:mm:ss.fff]") + " " + string.Format(f, a));
8888
}
8989
}

ClientLib/OptionsParser.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public abstract class BasicOptions : LinkOptions
128128
public int MsgCount { get; protected set; }
129129
public int CloseSleep { get; protected set; }
130130
public string SyncMode { get; protected set; }
131-
public int Timeout { get; protected set; }
131+
public TimeSpan Timeout { get; protected set; }
132132
public string LogMsgs { get; protected set; }
133133
public string LogStats { get; protected set; }
134134
public string LogLib { get; protected set; }
@@ -143,7 +143,7 @@ public BasicOptions() : base()
143143
this.MsgCount = 1;
144144
this.CloseSleep = 0;
145145
this.SyncMode = "none";
146-
this.Timeout = 1 * this._toSecConstant;
146+
this.Timeout = TimeSpan.FromSeconds(1);
147147
this.LogMsgs = "upstream";
148148
this.LogStats = String.Empty;
149149
this.LogLib = String.Empty;
@@ -156,7 +156,7 @@ public BasicOptions() : base()
156156
this.Add("sync-mode=", "sync action",
157157
(string syncMode) => { this.SyncMode = syncMode; });
158158
this.Add("t|timeout=", "timeout",
159-
(int timeout) => { this.Timeout = timeout * this._toSecConstant; });
159+
(int timeout) => { this.Timeout = TimeSpan.FromSeconds(timeout); });
160160
this.Add("log-msgs=", "log messages output [dict|body|upstream|interop]",
161161
(string logMsgs) => { this.LogMsgs = logMsgs; });
162162
this.Add("log-stats=", "report various statistic/debug information [endpoint]",

ClientLib/SenderClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public void Run(string[] args)
263263
bool tx_batch_flag = String.IsNullOrEmpty(options.TxLoopendAction) ? (options.TxSize > 0) : true;
264264

265265
Stopwatch stopwatch = new Stopwatch();
266-
TimeSpan timespan = new TimeSpan(0, 0, options.Timeout);
266+
TimeSpan timespan = options.Timeout;
267267

268268
stopwatch.Start();
269269

ClientLib/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="AMQPNetLite" version="1.2.3" targetFramework="net45" />
3+
<package id="AMQPNetLite" version="2.0.0" targetFramework="net45" />
44
<package id="NDesk.Options" version="0.2.1" targetFramework="net45" />
55
</packages>

cli-netlite.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26730.15
4+
VisualStudioVersion = 15.0.26730.16
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientLib", "ClientLib\ClientLib.csproj", "{6DC6D0F4-85F4-4380-9C49-FF26BC83D000}"
77
EndProject

0 commit comments

Comments
 (0)