Skip to content

Commit

Permalink
Make available Encoding type
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmskywalker committed Jul 14, 2022
1 parent de32f65 commit 13374cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Dynamic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Elsa.Models;
Expand Down Expand Up @@ -94,6 +95,7 @@ public async Task Handle(EvaluatingJavaScriptExpression notification, Cancellati
engine.RegisterType<Guid>();
engine.RegisterType<WorkflowExecutionContext>();
engine.RegisterType<ActivityExecutionContext>();
engine.RegisterType<Encoding>();

// Workflow variables.
var variables = workflowExecutionContext.GetMergedVariables();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Elsa.Models;
using Elsa.Scripting.JavaScript.Services;
using Elsa.Services.Models;
Expand Down Expand Up @@ -49,6 +50,7 @@ public override IEnumerable<Type> CollectTypes(TypeDefinitionContext context) =>
typeof(ActivityExecutionContext),
typeof(WorkflowExecutionContext),
typeof(WorkflowInstance),
typeof(Encoding)
};
}
}

0 comments on commit 13374cd

Please sign in to comment.