Skip to content

Instantly share code, notes, and snippets.

Erwin van der Valk Erwinvandervalk

Block or report user

Report or block Erwinvandervalk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Erwinvandervalk
Erwinvandervalk / PushStreamContent.cs
Created Dec 8, 2017
Validate json while sending it over http
View PushStreamContent.cs
/// <summary>
/// Allows you to pass an asynchronous action that writes to the output stream.
/// </summary>
public class PushStreamContent : HttpContent
{
private readonly Func<Stream, Task> _writeToStreamAsync;
private readonly int _length;
/// <summary>
/// Creates an instance of the PushStreamContent
You can’t perform that action at this time.