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
| # docker build -t fredrikhr/googleortools-tsp-sample-dotnetcore -f GoogleOrToolsDotnetCore.dockerfile https://gist.github.com/6cae577fcedba6311402c7e4ccefc021.git | |
| FROM mcr.microsoft.com/dotnet/core/sdk:3.1-bionic AS build | |
| WORKDIR /app/GoogleOrToolsDotnetCore | |
| # Install curl | |
| RUN set -x \ | |
| # APT Update & Upgrade | |
| && apt-get update \ | |
| && apt-get upgrade --yes 2>&1 \ |
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
| using System; | |
| using System.CommandLine; | |
| using System.CommandLine.Binding; | |
| using System.CommandLine.Builder; | |
| using System.CommandLine.Hosting; | |
| using System.CommandLine.Invocation; | |
| using System.CommandLine.IO; | |
| using System.CommandLine.Parsing; | |
| using System.Threading; | |
| using System.Threading.Tasks; |
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
| gistinfo |
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
| using System; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| public class C { | |
| public ValueTask<int> ReceiveFromAsync( | |
| Memory<byte> buffer, | |
| SocketFlags socketFlags, |
OlderNewer