Skip to content

Instantly share code, notes, and snippets.

View cvbarros's full-sized avatar

Carlos Vitor Barros cvbarros

View GitHub Profile
@cvbarros
cvbarros / HttpContentProcessor.cs
Created August 18, 2016 13:35 — forked from HenrikFrystykNielsen/HttpContentProcessor.cs
Sample showing a DelegatingHandler which plugs in a special HttpContent wrapper for saving response content to local disk and perform asynchronous post-processing on that file. This allows content from a response to be post-processed, for example to send
using System;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
namespace ResponseEntityProcessor.Handlers
{
/// <summary>
/// Wraps an inner <see cref="HttpContent"/> and forces the content to be written
@cvbarros
cvbarros / paket.bat
Created March 29, 2016 19:25 — forked from magicmonty/paket.bat
Handling TFS checkout on paket install, paket update and paket add
@ECHO OFF
.paket\paket.bootstrapper.exe
IF ERRORLEVEL 1 (
EXIT /B %ERRORLEVEL%
)
IF "%1" == "update" GOTO checkout
IF "%1" == "add" GOTO checkout
IF "%1" == "install" GOTO checkout