Commit 910405af authored by Jeremy Meng's avatar Jeremy Meng

Fix a runtime error. Also bump the version to 1.1.0.

parent 780a87bc
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
], ],
"dependencies": { "dependencies": {
"StackExchange.Redis": "1.0.0-*" "StackExchange.Redis": "1.1.0-*"
}, },
"frameworks": { "frameworks": {
......
...@@ -1085,9 +1085,8 @@ internal static class StreamExtensions ...@@ -1085,9 +1085,8 @@ internal static class StreamExtensions
{ {
internal static IAsyncResult BeginRead(this Stream stream, byte[] buffer, int offset, int count, AsyncCallback ac, object state) internal static IAsyncResult BeginRead(this Stream stream, byte[] buffer, int offset, int count, AsyncCallback ac, object state)
{ {
Task<int> f = stream.ReadAsync(buffer, offset, count); Task<int> f = Task<int>.Factory.StartNew(_ => stream.Read(buffer, offset, count), state);
if (ac != null) f.ContinueWith(res => ac(f)); if (ac != null) f.ContinueWith(res => ac(f));
f.Start();
return f; return f;
} }
......
{ {
"version": "1.0.0-*", "version": "1.1.0-*",
"description": "StackExchange.Redis", "description": "StackExchange.Redis",
"authors": [ "jeremymeng" ], "authors": [ "jeremymeng" ],
"tags": [ "" ], "tags": [ "" ],
......
{ {
"sdk": { "sdk": {
"version": "1.0.0-beta7", "version": "1.0.0-beta8",
"runtime": "coreclr", "runtime": "coreclr",
"architecture": "x86" "architecture": "x86"
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment