<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
Move away from Microsoft.AspNetCore.Authentication.ISystemClock to System.TimeProvider
// See https://aka.ms/new-console-template for more information
using System.IO.Pipes;
using System.Net.Http;
using System.Net.Http.Json;
using System.Net.Sockets;
using System.Runtime.InteropServices;
HttpClient client = CreateHttpClientConnectionToDockerEngine();
String dockerUrl = "http://localhost/v1.41/containers/json";
NOTE: Article also shows the use of Benchmark.net
[ApiController]
//[Route("[controller]")]
public class LambdaController : ControllerBase
{
[HttpPost]
[Route("2020-01-01/extension/register")]
public ActionResult Register([FromBody] object json)
Temmp https://github.com/jasonterando/S3BufferedUpload
Amazon.AWSConfigs.LoggingConfig.LogResponses = Amazon.ResponseLoggingOption.Always;
Amazon.AWSConfigs.LoggingConfig.LogTo = Amazon.LoggingOptions.Console;
Amazon.AWSConfigs.AddTraceListener("Amazon", new System.Diagnostics.ConsoleTraceListener());
/**
* Read all bytes from a file.
*
* Taken from http://codereview.stackexchange.com/questions/22901/reading-all-bytes-from-a-file
*
* Alternate form: static void ReadAllBytes(char const* filename, std::vector<char>& result)
*/
#include