Skip to content

Templates for Durable Functions Entity in isolated #1666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

andystaples
Copy link
Contributor

@andystaples andystaples commented May 12, 2025

This pull request introduces two new Durable Functions templates for Azure Functions: DurableFunctionsEntityClass and DurableFunctionsEntityFunction. These additions enhance the support for Durable Entities in isolated C# projects by providing pre-configured templates for creating stateful entities and their associated functions. Below is a summary of the key changes:

Template Additions

  • New DurableFunctionsEntityClass Template:

    • Added template configuration file (template.json) for DurableFunctionsEntityClass, defining metadata, classifications, and post-actions like NuGet package references for DurableTask and Http extensions.
    • Added Visual Studio host configuration file (vs-2017.3.host.json) for integrating the template into Visual Studio.
    • Added DurableFunctionsEntityClassCSharp.cs, a sample implementation of a stateful counter using Durable Entities.
  • New DurableFunctionsEntityFunction Template:

    • Added template configuration file (template.json) for DurableFunctionsEntityFunction, defining metadata, classifications, and post-actions similar to the class template.
    • Added Visual Studio host configuration file (vs-2017.3.host.json) for integrating the function template into Visual Studio.
    • Added DurableFunctionsEntityFunctionCSharp.cs, a static implementation for managing stateful operations using Durable Entities.

Package File Updates

  • Updated ItemTemplates-Isolated_NetCore_v4.x.nuspec, ItemTemplates-Isolated_NetFx_v4.x.nuspec, and ItemTemplates-Isolated_v4.x.nuspec to include the new templates for both DurableFunctionsEntityClass and DurableFunctionsEntityFunction. [1] [2] [3]

@andystaples andystaples requested a review from a team as a code owner May 12, 2025 22:15
@andystaples andystaples requested a review from nytian May 12, 2025 22:21
@manvkaur manvkaur requested a review from soninaren May 12, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants