Adding a new dotnet environment, supporting dotnet core 2.0. Project structure changed. Project.json was abandoned. Project.csproj is now used.
12 lines
282 B
C#
12 lines
282 B
C#
using System;
|
|
using Fission.DotNetCore.Api;
|
|
|
|
public class FissionFunction
|
|
{
|
|
public string Execute(FissionContext context){
|
|
var x = Convert.ToInt32(context.Arguments["x"]);
|
|
var y = Convert.ToInt32(context.Arguments["y"]);
|
|
return (x+y).ToString();
|
|
}
|
|
|