mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
dotnet Core example
This commit is contained in:
5
sample-functions/BaseFunctions/dncore/src/.gitignore
vendored
Normal file
5
sample-functions/BaseFunctions/dncore/src/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
bin/
|
||||
obj/
|
||||
.nuget/
|
||||
.dotnet/
|
||||
.templateengine/
|
25
sample-functions/BaseFunctions/dncore/src/Program.cs
Normal file
25
sample-functions/BaseFunctions/dncore/src/Program.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace root
|
||||
{
|
||||
class Program
|
||||
{
|
||||
private static string getStdin() {
|
||||
StringBuilder buffer = new StringBuilder();
|
||||
string s;
|
||||
while ((s = Console.ReadLine()) != null)
|
||||
{
|
||||
buffer.AppendLine(s);
|
||||
}
|
||||
return buffer.ToString();
|
||||
}
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
string buffer = getStdin();
|
||||
|
||||
Console.WriteLine(buffer);
|
||||
}
|
||||
}
|
||||
}
|
8
sample-functions/BaseFunctions/dncore/src/root.csproj
Executable file
8
sample-functions/BaseFunctions/dncore/src/root.csproj
Executable file
@ -0,0 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp1.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
Reference in New Issue
Block a user