elsa-core/samples/aspnet/Elsa.Samples.AspNet.WorkflowContexts/Extensions/ExpressionExecutionContextExtensions.cs
2024-02-02 20:01:14 +02:00

11 lines
438 B
C#

using Elsa.Expressions.Models;
using Elsa.Extensions;
using Elsa.Samples.AspNet.WorkflowContexts.Entities;
using Elsa.Samples.AspNet.WorkflowContexts.Providers;
namespace Elsa.Samples.AspNet.WorkflowContexts.Extensions;
public static class ExpressionExecutionContextExtensions
{
public static Customer GetCustomer(this ExpressionExecutionContext context) => context.GetWorkflowContext<CustomerWorkflowContextProvider, Customer>();
}