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
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"topicName": { | |
"type": "string", | |
"metadata": { | |
"description": "The value to use for creating the Event Grid Application Topic." | |
} | |
}, |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
<Title>xUnit Fact</Title> | |
<Shortcut>fact</Shortcut> | |
<Description>Code snippet for an xUnit test method (Fact) following the naming convention UnitOfWork_StateUnderTest_ExpectedBehaviour.</Description> |
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.Net.Http; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Extensions.Http; | |
using Microsoft.Azure.WebJobs.Host; | |
namespace DurableFunctionsDemo | |
{ | |
public static class HttpStart | |
{ |
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 Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Host; | |
namespace DurableFunctionsDemo.Functions | |
{ | |
public static class HelloWorld | |
{ | |
[FunctionName("HelloWorld")] | |
public static string Run( | |
[OrchestrationTrigger]DurableOrchestrationContext context, |
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
{ | |
"IsEncrypted": false, | |
"Values": { | |
"AzureWebJobsStorage": "UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://127.0.0.1:10002/", | |
"AzureWebJobsDashboard": "UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://127.0.0.1:10002/" | |
} | |
} |
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.Collections.Generic; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Host; | |
namespace DurableFunctionsDemo.OrchestrationFunctions | |
{ | |
public static class CollectNames | |
{ | |
[FunctionName("CollectNames")] |
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
namespace DurableFunctions.Demo.DotNetCore.Basics.Activities | |
{ | |
public static class HelloNameActivity | |
{ | |
[FunctionName(nameof(HelloNameActivity))] | |
public static string Run( | |
[ActivityTrigger] string name, | |
ILogger logger) | |
{ | |
logger.LogInformation($"Name: {name}"); |
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
namespace DurableFunctions.Demo.DotNetCore.Basics | |
{ | |
public static class FunctionName | |
{ | |
public const string HelloNameActivity = "HelloNameActivity"; | |
public const string HelloNameOrchestration = "HelloNameOrchestration"; | |
} | |
} |
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
var client = new GitHubClient(new ProductHeaderValue("SomeApplicationIdentifier")); | |
var latestRelease = await client.Repository.Release.GetLatest( | |
repoConfiguration.RepositoryOwner, | |
repoConfiguration.RepositoryName); |
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
var creds = new TwitterCredentials( | |
consumerApiKey, | |
consumerApiSecret, | |
accessToken, | |
accessTokenSecret); | |
var tweetMessage = CreateMessage(newRelease); | |
var tweet = Auth.ExecuteOperationWithCredentials(creds, () => | |
{ |