Skip to content

Commit 5e2b881

Browse files
authored
Templates for Durable Functions Entity in isolated (#1666)
* Templates for Durable Functions Entity in isolated
1 parent 1ede98b commit 5e2b881

27 files changed

+258
-0
lines changed

Build/PackageFiles/Dotnet_precompiled/ItemTemplates-Isolated_NetCore_v4.x.nuspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
<file src="..\..\..\Functions.Templates\Templates\KustoInputBinding-CSharp-Isolated\**" target="content\KustoInputBinding-CSharp-Isolated" />
4141
<file src="..\..\..\Functions.Templates\Templates\KustoOutputBinding-CSharp-Isolated\**" target="content\KustoOutputBinding-CSharp-Isolated" />
4242
<file src="..\..\..\Functions.Templates\Templates\DurableFunctionsOrchestration-CSharp-Isolated\**" target="content\DurableFunctionsOrchestration-CSharp" />
43+
<file src="..\..\..\Functions.Templates\Templates\DurableFunctionsEntityClass-CSharp-Isolated\**" target="content\DurableFunctionsEntityClass-CSharp" />
44+
<file src="..\..\..\Functions.Templates\Templates\DurableFunctionsEntityFunction-CSharp-Isolated\**" target="content\DurableFunctionsEntityFunction-CSharp" />
4345
<file src="..\..\..\Functions.Templates\Templates\SqlTrigger-CSharp-Isolated\**" target="content\SqlTrigger-CSharp-Isolated" />
4446
<file src="..\..\..\Functions.Templates\Templates\EventGridBlobTrigger-CSharp-Isolated-6.x\**" target="content\EventGridBlobTrigger-CSharp-Isolated-6.x" />
4547
<file src="..\..\..\Functions.Templates\Templates\DaprServiceInvocationTrigger-CSharp-Isolated\**" target="content\DaprServiceInvocationTrigger-CSharp-Isolated" exclude="**\*.md" />

Build/PackageFiles/Dotnet_precompiled/ItemTemplates-Isolated_NetFx_v4.x.nuspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
<file src="..\..\..\Functions.Templates\Templates\KustoInputBinding-CSharp-Isolated\**" target="content\KustoInputBinding-CSharp-Isolated" />
4141
<file src="..\..\..\Functions.Templates\Templates\KustoOutputBinding-CSharp-Isolated\**" target="content\KustoOutputBinding-CSharp-Isolated" />
4242
<file src="..\..\..\Functions.Templates\Templates\DurableFunctionsOrchestration-CSharp-Isolated\**" target="content\DurableFunctionsOrchestration-CSharp" />
43+
<file src="..\..\..\Functions.Templates\Templates\DurableFunctionsEntityClass-CSharp-Isolated\**" target="content\DurableFunctionsEntityClass-CSharp" />
44+
<file src="..\..\..\Functions.Templates\Templates\DurableFunctionsEntityFunction-CSharp-Isolated\**" target="content\DurableFunctionsEntityFunction-CSharp" />
4345
<file src="..\..\..\Functions.Templates\Templates\SqlTrigger-CSharp-Isolated\**" target="content\SqlTrigger-CSharp-Isolated" />
4446

4547
<file src="..\..\..\Functions.Templates\Templates\DaprServiceInvocationTrigger-CSharp-Isolated\**" target="content\DaprServiceInvocationTrigger-CSharp-Isolated" exclude="**\*.md" />

Build/PackageFiles/Dotnet_precompiled/ItemTemplates-Isolated_v4.x.nuspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
<file src="..\..\..\Functions.Templates\Templates\KustoInputBinding-CSharp-Isolated\**" target="content\KustoInputBinding-CSharp-Isolated" />
4040
<file src="..\..\..\Functions.Templates\Templates\KustoOutputBinding-CSharp-Isolated\**" target="content\KustoOutputBinding-CSharp-Isolated" />
4141
<file src="..\..\..\Functions.Templates\Templates\DurableFunctionsOrchestration-CSharp-Isolated\**" target="content\DurableFunctionsOrchestration-CSharp" />
42+
<file src="..\..\..\Functions.Templates\Templates\DurableFunctionsEntityClass-CSharp-Isolated\**" target="content\DurableFunctionsEntityClass-CSharp" />
43+
<file src="..\..\..\Functions.Templates\Templates\DurableFunctionsEntityFunction-CSharp-Isolated\**" target="content\DurableFunctionsEntityFunction-CSharp" />
4244
<file src="..\..\..\Functions.Templates\Templates\SqlTrigger-CSharp-Isolated\**" target="content\SqlTrigger-CSharp-Isolated" />
4345
<file src="..\..\..\Functions.Templates\Templates\EventGridBlobTrigger-CSharp-Isolated-6.x\**" target="content\EventGridBlobTrigger-CSharp-Isolated-6.x" />
4446
<file src="..\..\..\Functions.Templates\Templates\DaprServiceInvocationTrigger-CSharp-Isolated\**" target="content\DaprServiceInvocationTrigger-CSharp-Isolated" exclude="**\*.md" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"author": "Microsoft",
3+
"classifications": [
4+
"Azure Function",
5+
"Durable Functions Entity"
6+
],
7+
"name": "DurableFunctionsEntityClass",
8+
"identity": "Azure.Function.CSharp.Isolated.DurableFunctionsEntityClass.1.x",
9+
"groupIdentity": "Azure.Function.DurableFunctionsEntityClass",
10+
"shortName": "durableentityclass",
11+
"tags": {
12+
"language": "C#",
13+
"type": "item"
14+
},
15+
"sourceName": "DurableFunctionsEntityClassCSharp",
16+
"symbols": {
17+
"namespace": {
18+
"description": "namespace for the generated code",
19+
"replaces": "Company.Function",
20+
"type": "parameter"
21+
},
22+
"HostIdentifier": {
23+
"type": "bind",
24+
"binding": "HostIdentifier"
25+
}
26+
},
27+
"primaryOutputs": [
28+
{
29+
"path": "DurableFunctionsEntityClassCSharp.cs"
30+
}
31+
],
32+
"defaultName": "DurableFunctionsEntityClassCSharp",
33+
"postActions": [
34+
{
35+
"Description": "Adding reference to Microsoft.Azure.Functions.Worker.Extensions.DurableTask NuGet package.",
36+
"ActionId": "B17581D1-C5C9-4489-8F0A-004BE667B814",
37+
"ContinueOnError": "true",
38+
"ManualInstructions": [],
39+
"args": {
40+
"referenceType": "package",
41+
"reference": "Microsoft.Azure.Functions.Worker.Extensions.DurableTask",
42+
"version": "1.5.0",
43+
"projectFileExtensions": ".csproj"
44+
}
45+
},
46+
{
47+
"Description": "Adding Reference to Microsoft.Azure.Functions.Worker.Extensions.Http Nuget package",
48+
"ActionId": "B17581D1-C5C9-4489-8F0A-004BE667B814",
49+
"ContinueOnError": "true",
50+
"ManualInstructions": [],
51+
"args": {
52+
"referenceType": "package",
53+
"reference": "Microsoft.Azure.Functions.Worker.Extensions.Http",
54+
"version": "3.3.0",
55+
"projectFileExtensions": ".csproj"
56+
}
57+
},
58+
{
59+
"description": "Restore NuGet packages required by this project.",
60+
"manualInstructions": [],
61+
"actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
62+
"continueOnError": true
63+
},
64+
{
65+
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
66+
"description": "Opens the function class file in the editor.",
67+
"manualInstructions": [],
68+
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6",
69+
"args": {
70+
"files": "0"
71+
},
72+
"continueOnError": true
73+
}
74+
]
75+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": {
3+
"text": "Durable Functions Entity (class)",
4+
"package": "{E9BCFE2B-304A-4D7F-836F-F3A4FB1A1451}",
5+
"id": "2030"
6+
},
7+
"description": {
8+
"text": "A C# Entity class that acts as a stateful counter in Durable Functions.",
9+
"package": "{E9BCFE2B-304A-4D7F-836F-F3A4FB1A1451}",
10+
"id": "2031"
11+
},
12+
"order": 600,
13+
"icon": "vs-2017.3/functionF.png",
14+
"learnMoreLink": "https://go.microsoft.com/fwlink/?linkid=848145",
15+
"uiFilters": [
16+
"functions"
17+
],
18+
"symbolInfo": []
19+
}

0 commit comments

Comments
 (0)