This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
// To run Hastebin in Docker: | |
// docker run --name pastebin -p 801:80 mkodockx/docker-pastebin | |
string baseUrl = "http://localhost:801/"; | |
var hasteBinClient = new HasteBinClient(baseUrl); | |
HasteBinResult result = hasteBinClient.Post("Hello hastebin").Result; | |
if (result.IsSuccess) |