This file contains 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<artifactId>function</artifactId> | |
<name>function</name> | |
<version>1.0-SNAPSHOT</version> | |
<dependencies> | |
<dependency> | |
<groupId>joda-time</groupId> | |
<artifactId>joda-time</artifactId> | |
<version>2.9.2</version> |
This file contains 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
package io.kubeless; | |
import io.kubeless.Event; | |
import io.kubeless.Context; | |
import org.joda.time.LocalTime; | |
public class HelloWorld { | |
public String foo(io.kubeless.Event event, io.kubeless.Context context) { | |
System.out.println(event.Data); |
This file contains 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
POST http://{host}/api/orchestrators/E1_HelloSequence |
This file contains 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
{ | |
"bindings": [ | |
{ | |
"authLevel": "anonymous", | |
"name": "req", | |
"type": "httpTrigger", | |
"direction": "in", | |
"route": "orchestrators/{functionName}", | |
"methods": ["post"] | |
}, |
This file contains 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
#r "Microsoft.Azure.WebJobs.Extensions.DurableTask" | |
#r "Newtonsoft.Json" | |
using System.Net; | |
using System.Net.Http.Headers; | |
public static async Task<HttpResponseMessage> Run( | |
HttpRequestMessage req, | |
DurableOrchestrationClient starter, | |
string functionName, |
This file contains 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
module.exports = function(context) { | |
context.done(null, `Hello ${context.bindings.name}!`); | |
}; |
This file contains 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
const df = require("durable-functions"); | |
module.exports = df(function*(context){ | |
context.log("Starting chain sample"); | |
const output = []; | |
output.push(yield context.df.callActivityAsync("E1_SayHello", "Tokyo")); | |
output.push(yield context.df.callActivityAsync("E1_SayHello", "Seattle")); | |
output.push(yield context.df.callActivityAsync("E1_SayHello", "London")); |
This file contains 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
func extensions install -p Microsoft.Azure.WebJobs.Extensions.DurableTask -v 1.4.0 |
This file contains 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
"parameters": { | |
"vmName": { | |
"value": "iisvm" | |
}, | |
"vmAdminUserName": { | |
"value": "adminuser" | |
}, | |
"vmAdminPassword": { |
This file contains 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
"properties": { | |
"publicIPAllocationMethod": "Dynamic", | |
"dnsSettings": { | |
"domainNameLabel": "[variables('vmpipDnsName')]" | |
} | |
} |
NewerOlder