Skip to content

Instantly share code, notes, and snippets.

@abolibibelot
Created June 25, 2013 20:39
Show Gist options
  • Save abolibibelot/5862152 to your computer and use it in GitHub Desktop.
Save abolibibelot/5862152 to your computer and use it in GitHub Desktop.
//Works
public async void Write(byte[] buffer)
{
var len = buffer.Length;
Size += len;
await _stream.WriteAsync(buffer, 0, len);
}
var bytes = Encoding.UTF8.GetBytes(item);
blob.Write(bytes);
//Doesn't work
public async Task Write(byte[] buffer)
{
var len = buffer.Length;
Size += len;
await _stream.WriteAsync(buffer, 0, len);
}
var bytes = Encoding.UTF8.GetBytes(item);
await blob.Write(bytes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment