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
$name = 'put-your-logicapp-name-here' | |
$resourcegroup = 'put-resource-group-here' | |
$subscription = {this_is_your_subscription_guid} | |
armclient token $subscription | | |
Get-LogicAppTemplate ` | |
-LogicApp $name ` | |
-ResourceGroup $resourcegroup ` | |
-SubscriptionId $subscription ` | |
-Verbose | Out-File C:\Temp\$name.json |
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
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Host; | |
namespace SogetiBotFunctions | |
{ | |
public static class Test | |
{ |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"_artifactsLocation": { | |
"type": "string" | |
}, | |
"_artifactsLocationSasToken": { | |
"type": "securestring" | |
}, |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"configurationParameters": { | |
"value": { | |
"logicAppSkuName": "Standard", | |
"logicAppOneName": "LogicAppOne", | |
"logicAppTwoName": "LogicAppTwo" | |
} |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"logicAppName": { | |
"value": "LogicAppOne" | |
}, | |
"NewLogicAppName": { | |
"value": "LogicAppTwo" | |
} |
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
using System; | |
using System.Configuration; | |
using Microsoft.ProjectOxford.Text.Sentiment; | |
using System.Xml; | |
using System.ServiceModel.Syndication; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace TextAnalysis | |
{ |
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
public void DoWork() | |
{ | |
var tmpfile = SaveImageCapture((BitmapSource)player.Source); | |
var emotions = await MakeRequest(tmpfile); | |
if (emotions == null || | |
!emotions.Any()) | |
{ | |
txtNoFaces.Text = $"Detected faces: none"; | |
return; |
NewerOlder