2023-04-17 22:01:24 +00:00
|
|
|
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-04-17 22:01:24 +00:00
|
|
|
|
2023-06-08 10:01:26 +00:00
|
|
|
namespace Elsa.Samples.AspNet.WorkflowContexts.Extensions;
|
2023-04-17 22:01:24 +00:00
|
|
|
|
|
|
|
|
public static class ExpressionExecutionContextExtensions
|
|
|
|
|
{
|
|
|
|
|
public static Customer GetCustomer(this ExpressionExecutionContext context) => context.GetWorkflowContext<CustomerWorkflowContextProvider, Customer>();
|
|
|
|
|
}
|