Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit a41216e

Browse files
committed
Merge master branch into netcore
2 parents 08d1c5e + 2b833b6 commit a41216e

17 files changed

+53
-108
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ _ReSharper*/
3535
[Tt]est[Rr]esult*
3636
App_Data/
3737
.vs/
38-
.vscode/
39-
*.lock.json
38+
.vscode/
39+
*.lock.json
40+
*.nuget.props
41+
*.nuget.targets
4042

4143
NuGet/
4244
NuGet.Signed/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ The [Redis Stats wiki](https://github.com/ServiceStack/ServiceStack.Redis/wiki/R
258258

259259
To improve the resilience of client connections, `RedisClient` will transparently retry failed
260260
Redis operations due to Socket and I/O Exceptions in an exponential backoff starting from
261-
**10ms** up until the `RetryTimeout` of **3000ms**. These defaults can be tweaked with:
261+
**10ms** up until the `RetryTimeout` of **10000ms**. These defaults can be tweaked with:
262262

263263
```csharp
264-
RedisConfig.DefaultRetryTimeout = 3000;
264+
RedisConfig.DefaultRetryTimeout = 10000;
265265
RedisConfig.BackOffMultiplier = 10;
266266
```
267267

lib/ServiceStack.Client.dll

0 Bytes
Binary file not shown.

lib/ServiceStack.Common.dll

0 Bytes
Binary file not shown.

lib/ServiceStack.Interfaces.dll

0 Bytes
Binary file not shown.

lib/netstandard1.1/copy.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
SET BUILD=Debug
2+
REM SET BUILD=Release
3+
4+
COPY ..\..\..\ServiceStack.Text\src\ServiceStack.Text\bin\%BUILD%\netstandard1.1\ServiceStack.Text.* .\
5+
COPY ..\..\..\ServiceStack.Text\src\ServiceStack.Text\bin\%BUILD%\netstandard1.3\ServiceStack.Text.* ..\netstandard1.3\
6+
COPY ..\..\..\ServiceStack\src\ServiceStack.Common\bin\%BUILD%\netstandard1.3\ServiceStack.Common.* ..\netstandard1.3
7+
COPY ..\..\..\ServiceStack\src\ServiceStack.Interfaces\bin\%BUILD%\netstandard1.1\ServiceStack.Interfaces.* .\
8+

lib/netstandard1.3/copy.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
SET BUILD=Debug
2+
REM SET BUILD=Release
3+
4+
COPY ..\..\..\ServiceStack.Text\src\ServiceStack.Text\bin\%BUILD%\netstandard1.1\ServiceStack.Text.* ..\netstandard1.1\
5+
COPY ..\..\..\ServiceStack.Text\src\ServiceStack.Text\bin\%BUILD%\netstandard1.3\ServiceStack.Text.* .
6+
COPY ..\..\..\ServiceStack\src\ServiceStack.Common\bin\%BUILD%\netstandard1.3\ServiceStack.Common.* .
7+
COPY ..\..\..\ServiceStack\src\ServiceStack.Interfaces\bin\%BUILD%\netstandard1.1\ServiceStack.Interfaces.* ..\netstandard1.1\
8+

lib/signed/ServiceStack.Common.dll

0 Bytes
Binary file not shown.

lib/signed/ServiceStack.Text.dll

0 Bytes
Binary file not shown.

src/ServiceStack.Redis/BufferedStream.cs

Lines changed: 11 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -10,80 +10,35 @@ public sealed class BufferedStream : Stream
1010
NetworkStream networkStream;
1111

1212
public BufferedStream(Stream stream)
13-
: this(stream, 0)
14-
{
15-
}
13+
: this(stream, 0) {}
1614

1715
public BufferedStream(Stream stream, int bufferSize)
1816
{
19-
networkStream = stream as NetworkStream;
20-
21-
if (networkStream == null)
22-
throw new ArgumentNullException("stream");
23-
}
24-
25-
26-
/* public BufferedStream(Stream stream)
27-
: this(stream, 0)
28-
{
17+
networkStream = (NetworkStream)stream;
2918
}
19+
public override bool CanRead => networkStream.CanRead;
3020

31-
public BufferedStream(Stream stream, int bufferSize) : base (stream)
32-
{
33-
if (stream == null)
34-
throw new ArgumentNullException("stream");
35-
}
36-
*/
37-
public override bool CanRead
38-
{
39-
get { return networkStream.CanRead; }
40-
}
41-
42-
public override bool CanSeek
43-
{
44-
get { return networkStream.CanSeek; }
45-
}
21+
public override bool CanSeek => networkStream.CanSeek;
4622

47-
public override bool CanWrite
48-
{
49-
get { return networkStream.CanWrite; }
50-
}
23+
public override bool CanWrite => networkStream.CanWrite;
5124

5225
public override long Position
5326
{
5427
get { return networkStream.Position; }
5528
set { networkStream.Position = value; }
5629
}
5730

58-
public override long Length
59-
{
60-
get { return networkStream.Length; }
61-
}
31+
public override long Length => networkStream.Length;
6232

63-
public override int Read(byte[] buffer, int offset, int length)
64-
{
65-
return networkStream.Read(buffer, offset, length);
66-
}
33+
public override int Read(byte[] buffer, int offset, int length) => networkStream.Read(buffer, offset, length);
6734

68-
public override void Write(byte[] buffer, int offset, int length)
69-
{
70-
networkStream.Write(buffer, offset, length);
71-
}
35+
public override void Write(byte[] buffer, int offset, int length) => networkStream.Write(buffer, offset, length);
7236

73-
public override void Flush()
74-
{
75-
networkStream.Flush();
76-
}
37+
public override void Flush() => networkStream.Flush();
7738

78-
public override void SetLength(long length)
79-
{
80-
networkStream.SetLength(length);
81-
}
39+
public override void SetLength(long length) => networkStream.SetLength(length);
8240

83-
public override long Seek(long position, SeekOrigin origin)
84-
{
85-
return networkStream.Seek(position, origin);
86-
}
41+
public override long Seek(long position, SeekOrigin origin) => networkStream.Seek(position, origin);
8742
}
8843
}
8944
#endif

0 commit comments

Comments
 (0)