elsa-core/samples/aspnet/Elsa.Samples.AspNet.WorkflowContexts/Extensions/ExpressionExecutionContextExtensions.cs

11 lines
438 B
C#
Raw Normal View History

using Elsa.Expressions.Models;
using Elsa.Extensions;
2023-06-09 08:13:26 +00:00
using Elsa.Samples.AspNet.WorkflowContexts.Entities;
2023-06-08 10:01:26 +00:00
using Elsa.Samples.AspNet.WorkflowContexts.Providers;
2023-06-08 10:01:26 +00:00
namespace Elsa.Samples.AspNet.WorkflowContexts.Extensions;
public static class ExpressionExecutionContextExtensions
{
public static Customer GetCustomer(this ExpressionExecutionContext context) => context.GetWorkflowContext<CustomerWorkflowContextProvider, Customer>();
}