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 @@
],
"dependencies": {
"StackExchange.Redis": "1.0.0-*"
"StackExchange.Redis": "1.1.0-*"
},
"frameworks": {
......
......@@ -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)
{
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));
f.Start();
return f;
}
......
{
"version": "1.0.0-*",
"version": "1.1.0-*",
"description": "StackExchange.Redis",
"authors": [ "jeremymeng" ],
"tags": [ "" ],
......
{
"sdk": {
"version": "1.0.0-beta7",
"version": "1.0.0-beta8",
"runtime": "coreclr",
"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