Skip to content

Commit bf4f361

Browse files
jiridanekkornys
authored andcommitted
Fix all typos found by a spell checker (#16)
1 parent 721ce78 commit bf4f361

File tree

10 files changed

+36
-36
lines changed

10 files changed

+36
-36
lines changed

src/dotNet/ClientLib/CoreClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ protected void OtherExceptionHandler(Exception ex, Options options)
212212
/// Method to rap unhandled exception
213213
/// </summary>
214214
/// <param name="sender">sender object</param>
215-
/// <param name="e">exception</param>
215+
/// <param name="ex">exception</param>
216216
void UnhandledExceptionTrapper(object sender, UnhandledExceptionEventArgs ex)
217217
{
218218
Console.Error.WriteLine("ERROR: {{'cause': '{0}'}}", ex.ToString());

src/dotNet/ClientLib/Formatter.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
namespace ClientLib
2929
{
3030
/// <summary>
31-
/// Class for formating message to text output
31+
/// Class for formatting message to text output
3232
/// </summary>
3333
public class Formatter
3434
{
@@ -154,7 +154,7 @@ public static void PrintMessageAsJson(Message msg, bool hashContent)
154154
/// <summary>
155155
/// Print statistic info
156156
/// </summary>
157-
/// <param name="in_dict">stats obejct</param>
157+
/// <param name="in_dict">stats object</param>
158158
public static void PrintStatistics(Dictionary<string, object> in_dict)
159159
{
160160
Console.WriteLine("STATS " + FormatMap(in_dict));
@@ -224,7 +224,7 @@ public static string FormatDate(DateTime inData)
224224
/// <summary>
225225
/// Format string
226226
/// </summary>
227-
/// <param name="inData">streing</param>
227+
/// <param name="inData">string</param>
228228
/// <returns>string</returns>
229229
public static string FormatString(string inData)
230230
{
@@ -259,7 +259,7 @@ public static string FormatInt(int inData)
259259
}
260260

261261
/// <summary>
262-
/// Format unsingned integer as string
262+
/// Format unsigned integer as string
263263
/// </summary>
264264
/// <param name="inData">uint</param>
265265
/// <returns>string</returns>
@@ -299,7 +299,7 @@ public static string FormatULong(ulong inData)
299299
}
300300

301301
/// <summary>
302-
/// Format fload as string
302+
/// Format float as string
303303
/// </summary>
304304
/// <param name="inData">float</param>
305305
/// <returns>string</returns>
@@ -387,7 +387,7 @@ public static string FormatMap(Map inDict)
387387
/// Format list as string
388388
/// </summary>
389389
/// <param name="inData">collection (arrayList, list)</param>
390-
/// <returnsstring></returns>
390+
/// <returns>string</returns>
391391
public static string FormatList(Collection<object> inData)
392392
{
393393
if (inData != null)
@@ -554,10 +554,10 @@ public static string FormatVariant(object inData)
554554
}
555555

556556
/// <summary>
557-
/// Method for run formating
557+
/// Method for run formatting
558558
/// </summary>
559559
/// <param name="msg">message object</param>
560-
/// <param name="options">agruments of client</param>
560+
/// <param name="options">arguments of client</param>
561561
public static void LogMessage(Message msg, SenderReceiverOptions options)
562562
{
563563
var hashContent = options.HashContent;

src/dotNet/ClientLib/OptionsParser.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected static bool ParseBoolOption(string value)
6464
}
6565

6666
/// <summary>
67-
/// Abstract slacc for store connection options fol clients
67+
/// Abstract class for store connection options fol clients
6868
/// </summary>
6969
public abstract class ConnectionOptions : Options
7070
{
@@ -90,8 +90,8 @@ public ConnectionOptions() : base()
9090
//add options
9191
this.Add("b|broker=", "-b VALUE, --broker-url VALUE url of broker to connect to (default amqp://127.0.0.1:5672)",
9292
(string url) => { this.Url = this.amqpPrefix + url; });
93-
this.Add("conn-heartbeat=", "time in s to delay between heatbeat packet",
94-
(int heatbeat) => { this.Heartbeat = heatbeat * this._toSecConstant; });
93+
this.Add("conn-heartbeat=", "time in s to delay between heartbeat packets",
94+
(int heartbeat) => { this.Heartbeat = heartbeat * this._toSecConstant; });
9595
this.Add("conn-auth-mechanisms=", "VALUE SASL mechanisms; currently supported PLAIN | GSSAPI | EXTERNAL",
9696
(string authMech) => { this.AuthMech = authMech; });
9797
this.Add("conn-max-frame-size=", "Set connection max frame size",
@@ -132,7 +132,7 @@ public LinkOptions() : base()
132132
}
133133

134134
/// <summary>
135-
/// Abstract class for store toegether options for all clients
135+
/// Abstract class to store together options for all clients
136136
/// </summary>
137137
public abstract class BasicOptions : LinkOptions
138138
{
@@ -192,7 +192,7 @@ public BasicOptions() : base()
192192
}
193193

194194
/// <summary>
195-
/// Abstract class for store sender and receiver toegether options
195+
/// Abstract class to store sender and receiver together options
196196
/// </summary>
197197
public abstract class SenderReceiverOptions : BasicOptions
198198
{
@@ -432,7 +432,7 @@ public class ReceiverOptions : SenderReceiverOptions
432432
public string Action { get; private set; }
433433
public bool RecvBrowse { get; private set; }
434434
public string MsgSelector { get; private set; }
435-
public bool ProccessReplyTo { get; private set; }
435+
public bool ProcessReplyTo { get; private set; }
436436
public bool RecvListener { get; private set; }
437437
public int RecvListenerPort { get; private set; }
438438

@@ -453,7 +453,7 @@ public ReceiverOptions() : base()
453453
this.Add("recv-selector=|msg-selector=", "get all messages on specific filter",
454454
(string recvSelector) => { this.MsgSelector = recvSelector; });
455455
this.Add("process-reply-to", "reply on reply_on address",
456-
(v) => { this.ProccessReplyTo = true; });
456+
(v) => { this.ProcessReplyTo = true; });
457457
this.Add("recv-listen=", "enable receiver as listener [true, false]",
458458
(bool recvListen) => { this.RecvListener = recvListen; });
459459
this.Add("recv-listen-port=", "port for p2p",

src/dotNet/ClientLib/ReceiverClient.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class ReceiverClient : CoreClient
3535
/// </summary>
3636
/// <param name="options">receiver options</param>
3737
/// <returns>build receiver link</returns>
38-
private ReceiverLink PeprareReceiverLink(ReceiverOptions options)
38+
private ReceiverLink PrepareReceiverLink(ReceiverOptions options)
3939
{
4040
Source recvSource = new Source()
4141
{
@@ -141,14 +141,14 @@ public MessageProcessor(ReceiverOptions options, ContainerHost host)
141141
/// <summary>
142142
/// init of message processor
143143
/// </summary>
144-
/// <param name="messageContext">context of messsage</param>
144+
/// <param name="messageContext">context of message</param>
145145
public void Process(MessageContext messageContext)
146146
{
147147
var task = this.ReplyAsync(messageContext);
148148
}
149149

150150
/// <summary>
151-
/// Async tassk for handling requst
151+
/// Async task for handling request
152152
/// </summary>
153153
/// <param name="messageContext">context of message</param>
154154
/// <returns>async task</returns>
@@ -255,7 +255,7 @@ private void TransactionReceive(ReceiverLink receiver, ReceiverOptions options)
255255
}
256256

257257
/// <summary>
258-
/// Standart receiving
258+
/// Standard receiving
259259
/// </summary>
260260
/// <param name="receiver">receiver link</param>
261261
/// <param name="options">receiver options</param>
@@ -276,7 +276,7 @@ private void Receive(ReceiverLink receiver, ReceiverOptions options)
276276
Formatter.LogMessage(message, options);
277277
nReceived++;
278278

279-
if (options.ProccessReplyTo)
279+
if (options.ProcessReplyTo)
280280
{
281281
SenderLink sender = new SenderLink(session, "reply-to-sender", message.Properties.ReplyTo);
282282
sender.Send(message);
@@ -294,10 +294,10 @@ private void Receive(ReceiverLink receiver, ReceiverOptions options)
294294
#endregion
295295

296296
/// <summary>
297-
/// Main metho for receiver (receive messages)
297+
/// Main method for receiver (receive messages)
298298
/// </summary>
299299
/// <param name="args">array arguments from command line</param>
300-
/// <returns>returncode</returns>
300+
/// <returns>return code</returns>
301301
public void Run(string[] args)
302302
{
303303
ReceiverOptions options = new ReceiverOptions();
@@ -326,7 +326,7 @@ public void Run(string[] args)
326326

327327
Utils.TsSnapStore(this.ptsdata, 'D', options.LogStats);
328328

329-
ReceiverLink receiver = this.PeprareReceiverLink(options);
329+
ReceiverLink receiver = this.PrepareReceiverLink(options);
330330

331331
Message message = new Message();
332332

src/dotNet/ClientLib/ReconnectSender.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//
66
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
77
// EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR
8-
// CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR
8+
// CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY OR
99
// NON-INFRINGEMENT.
1010
//
1111
// See the Apache Version 2.0 License for specific language governing permissions and
@@ -14,9 +14,9 @@
1414

1515
//
1616
// ReconnectSender
17-
// * Detects a failed AMQP connection and automatically reconnets it.
17+
// * Detects a failed AMQP connection and automatically reconnects it.
1818
// * Recovers from a peer failure by connecting to a list of AMQP brokers/peers.
19-
// * Builds or rebuilds the AMPQ object hierarchy in response to protocol events.
19+
// * Builds or rebuilds the AMQP object hierarchy in response to protocol events.
2020
// * Recovers from all failures by reconnecting the AMQP connection.
2121
//
2222
// Command line:

src/dotNet/ClientLib/SenderClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static Dictionary<string, object> GetSenderStats(SenderLink snd)
129129
/// Prepare sender link with options
130130
/// </summary>
131131
/// <param name="options">sender options</param>
132-
/// <returns>builted sender link</returns>
132+
/// <returns>built sender link</returns>
133133
private SenderLink PrepareSender(SenderOptions options)
134134
{
135135
Attach attach = new Attach()
@@ -206,7 +206,7 @@ private void TransactionSend(SenderLink sender, SenderOptions options)
206206
}
207207

208208
/// <summary>
209-
/// Method for standart sending of messages
209+
/// Method for standard sending of messages
210210
/// </summary>
211211
/// <param name="sender">sender link</param>
212212
/// <param name="options">options</param>

src/dotNet/ClientLib/Utils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static double GetTime()
4444
/// <param name="in_ts">initial timestamp</param>
4545
/// <param name="in_count">number of iterations</param>
4646
/// <param name="in_duration">total time of all iterations</param>
47-
/// <param name="in_indx"next iteration index></param>
47+
/// <param name="in_indx">next iteration index</param>
4848
public static void Sleep4Next(double in_ts, int in_count, int in_duration,
4949
int in_indx)
5050
{
@@ -99,7 +99,7 @@ public static void TsSnapStore(List<double> tsData, char step, string optMode)
9999
/// <param name="tsData">an initialized arraylist</param>
100100
/// <param name="step">the timestamp step</param>
101101
/// <param name="optMode">timestamping mode (if contains string "perf:(in_step)" then enabled)</param>
102-
/// <param name="in_msg_ts">message</param>
102+
/// <param name="msg">message</param>
103103
public static void TsSnapStore(List<double> tsData, char step, string optMode, double msg)
104104
{
105105
if ((tsData != null) && (tsData.Count > 0) && (optMode.IndexOf("perf") > -1))

test/ClientUnitTests/ClientRunner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ class ClientRunner
2323
private string projectDir;
2424

2525
/// <summary>
26-
/// Construnctor of class
26+
/// Constructor of class
2727
/// </summary>
2828
public ClientRunner()
2929
{
3030
this.projectDir = AppDomain.CurrentDomain.BaseDirectory;
3131
}
3232

3333
/// <summary>
34-
/// Build path of exucutable client
34+
/// Build path of executable client
3535
/// </summary>
3636
/// <param name="client">client string</param>
3737
/// <returns>path to executable</returns>

test/ClientUnitTests/OptionParserTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void ParsesTildeIntAsInt()
9898
public class TheSenderOptionsValueParser
9999
{
100100
[Test]
101-
public void ParsesEmtpyStringAsEmptyString()
101+
public void ParsesEmptyStringAsEmptyString()
102102
{
103103
Assert.AreEqual(string.Empty, SenderOptions.ParseValue(""));
104104
}

test/NetCoreClientUnitTest/ClientRunner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ class ClientRunner
2222
private string baseDir;
2323

2424
/// <summary>
25-
/// Construnctor of class
25+
/// Constructor of class
2626
/// </summary>
2727
public ClientRunner()
2828
{
2929
this.baseDir = AppDomain.CurrentDomain.BaseDirectory + "/../../../../../";
3030
}
3131

3232
/// <summary>
33-
/// Build path of exucutable client
33+
/// Build path of executable client
3434
/// </summary>
3535
/// <param name="client">client string</param>
3636
/// <returns>path to executable</returns>

0 commit comments

Comments
 (0)