Skip to content

Commit ae68200

Browse files
committed
Merge pull request ServiceStack#115 from jluchiji/master
Made private send methods in RedisNativeClient protected
2 parents 3b19b22 + b4d60d1 commit ae68200

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/ServiceStack.Redis/RedisNativeClient_Utils.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ private int SafeReadByte()
303303
return Bstream.ReadByte();
304304
}
305305

306-
private void SendExpectSuccess(params byte[][] cmdWithBinaryArgs)
306+
protected void SendExpectSuccess(params byte[][] cmdWithBinaryArgs)
307307
{
308308
if (!SendCommand(cmdWithBinaryArgs))
309309
throw CreateConnectionError();
@@ -316,7 +316,7 @@ private void SendExpectSuccess(params byte[][] cmdWithBinaryArgs)
316316
ExpectSuccess();
317317
}
318318

319-
private int SendExpectInt(params byte[][] cmdWithBinaryArgs)
319+
protected int SendExpectInt(params byte[][] cmdWithBinaryArgs)
320320
{
321321
if (!SendCommand(cmdWithBinaryArgs))
322322
throw CreateConnectionError();
@@ -329,7 +329,7 @@ private int SendExpectInt(params byte[][] cmdWithBinaryArgs)
329329
return ReadInt();
330330
}
331331

332-
private long SendExpectLong(params byte[][] cmdWithBinaryArgs)
332+
protected long SendExpectLong(params byte[][] cmdWithBinaryArgs)
333333
{
334334
if (!SendCommand(cmdWithBinaryArgs))
335335
throw CreateConnectionError();
@@ -342,7 +342,7 @@ private long SendExpectLong(params byte[][] cmdWithBinaryArgs)
342342
return ReadLong();
343343
}
344344

345-
private byte[] SendExpectData(params byte[][] cmdWithBinaryArgs)
345+
protected byte[] SendExpectData(params byte[][] cmdWithBinaryArgs)
346346
{
347347
if (!SendCommand(cmdWithBinaryArgs))
348348
throw CreateConnectionError();
@@ -355,13 +355,13 @@ private byte[] SendExpectData(params byte[][] cmdWithBinaryArgs)
355355
return ReadData();
356356
}
357357

358-
private string SendExpectString(params byte[][] cmdWithBinaryArgs)
358+
protected string SendExpectString(params byte[][] cmdWithBinaryArgs)
359359
{
360360
var bytes = SendExpectData(cmdWithBinaryArgs);
361361
return bytes.FromUtf8Bytes();
362362
}
363363

364-
private double SendExpectDouble(params byte[][] cmdWithBinaryArgs)
364+
protected double SendExpectDouble(params byte[][] cmdWithBinaryArgs)
365365
{
366366
var bytes = SendExpectData(cmdWithBinaryArgs);
367367
return bytes == null ? Double.NaN : ParseDouble(bytes);
@@ -377,7 +377,7 @@ public static double ParseDouble(byte[] doubleBytes)
377377
return d;
378378
}
379379

380-
private string SendExpectCode(params byte[][] cmdWithBinaryArgs)
380+
protected string SendExpectCode(params byte[][] cmdWithBinaryArgs)
381381
{
382382
if (!SendCommand(cmdWithBinaryArgs))
383383
throw CreateConnectionError();
@@ -391,7 +391,7 @@ private string SendExpectCode(params byte[][] cmdWithBinaryArgs)
391391
return ExpectCode();
392392
}
393393

394-
private byte[][] SendExpectMultiData(params byte[][] cmdWithBinaryArgs)
394+
protected byte[][] SendExpectMultiData(params byte[][] cmdWithBinaryArgs)
395395
{
396396
if (!SendCommand(cmdWithBinaryArgs))
397397
throw CreateConnectionError();
@@ -404,7 +404,7 @@ private byte[][] SendExpectMultiData(params byte[][] cmdWithBinaryArgs)
404404
return ReadMultiData();
405405
}
406406

407-
private object [] SendExpectDeeplyNestedMultiData(params byte[][] cmdWithBinaryArgs)
407+
protected object[] SendExpectDeeplyNestedMultiData(params byte[][] cmdWithBinaryArgs)
408408
{
409409
if (!SendCommand(cmdWithBinaryArgs))
410410
throw CreateConnectionError();

0 commit comments

Comments
 (0)