Skip to content

Commit

Permalink
⚡️ optimization C# script and fix know issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnkwlp committed Feb 1, 2024
1 parent 1d03b48 commit c7a4600
Show file tree
Hide file tree
Showing 63 changed files with 1,330 additions and 810 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ tab_width = 4
dotnet_diagnostic.CA1848.severity = silent
dotnet_diagnostic.CA1305.severity = silent
dotnet_diagnostic.CA2016.severity = warning
dotnet_diagnostic.ide0011.severity = warning

[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.stylelintrc,bowerrc,jest.config}]
indent_style = space
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -261,3 +261,5 @@ paket-files/
/app/src/Passingwind.WorkflowApp.Web/storage/*
/app/src/Passingwind.WorkflowApp.HttpApi.Host/storage/*
.nuget

pack_out/
7 changes: 7 additions & 0 deletions Passingwind.WorkflowApp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.Abp.ElsaModule.
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.WorkflowApp.MongoDB", "app\src\Passingwind.WorkflowApp.MongoDB\Passingwind.WorkflowApp.MongoDB.csproj", "{035E382E-45DD-4B81-959C-DBBE62E27448}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Passingwind.CSharpScriptEngine", "src\Passingwind.CSharpScript\Passingwind.CSharpScriptEngine.csproj", "{DD1666C3-5EDD-4010-B5E8-34A789791589}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -177,6 +179,10 @@ Global
{035E382E-45DD-4B81-959C-DBBE62E27448}.Debug|Any CPU.Build.0 = Debug|Any CPU
{035E382E-45DD-4B81-959C-DBBE62E27448}.Release|Any CPU.ActiveCfg = Release|Any CPU
{035E382E-45DD-4B81-959C-DBBE62E27448}.Release|Any CPU.Build.0 = Release|Any CPU
{DD1666C3-5EDD-4010-B5E8-34A789791589}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DD1666C3-5EDD-4010-B5E8-34A789791589}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DD1666C3-5EDD-4010-B5E8-34A789791589}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DD1666C3-5EDD-4010-B5E8-34A789791589}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -209,6 +215,7 @@ Global
{66FA16F1-5D09-450B-986E-E252CB570F72} = {93A146E1-E830-4943-A5C3-BC464376C979}
{0A2A7CD6-D468-4AB8-9A2E-C3EF76BDE2B9} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545}
{035E382E-45DD-4B81-959C-DBBE62E27448} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{DD1666C3-5EDD-4010-B5E8-34A789791589} = {649A3FFA-182F-4E56-9717-E6A9A2BEC545}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {28315BFD-90E7-4E14-A2EA-F3D23AF4126F}
Expand Down
12 changes: 6 additions & 6 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "7.0.200",
"rollForward": "latestFeature"
}
}
{
"sdk": {
"version": "7.0.200",
"rollForward": "latestFeature"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public Task Handle(CSharpScriptEvaluationNotification notification, Cancellation
var global = notification.EvaluationGlobal;

if (_httpContextAccessor.HttpContext == null)
throw new System.Exception("The HttpContext is null");
return Task.CompletedTask;

global.Context.QueryString = (Func<string, string>)(key => _httpContextAccessor.HttpContext!.Request.Query[key].ToString());
global.Context.AbsoluteUrl = (Func<string, string>)(url => _absoluteUrlProvider.ToAbsoluteUrl(url).ToString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
using Passingwind.Abp.ElsaModule.CSharp;
using Passingwind.Abp.ElsaModule.GlobalCodes;
using Passingwind.Abp.ElsaModule.Scripting.CSharp;
using Passingwind.CSharpScriptEngine;

namespace Passingwind.Abp.ElsaModule.Activities.Scripting;

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit c7a4600

Please sign in to comment.