-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* migrating to Immutable items for state migrating items to Immutable types in the state interfaces * additional code cleanup and improvesments for immutable items as well as newer switch styling * additional cleanups additional code cleanups to remove warnings * added fallback datetime added in a fallback datetime parser as a precaution for older variable encoded dates * updating package version updating the package version number * migrated state storage migrated state storage pieces into component classes in order to try and make the code cleaner and easier to read. * refactor version refactored version to run exclusively in dotnet8 as well as improvements in code quality * code cleanup code cleanups * updated package version updated package version
- Loading branch information
1 parent
7737e9c
commit abd1063
Showing
256 changed files
with
3,721 additions
and
4,061 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,12 +19,12 @@ jobs: | |
uses: actions/setup-dotnet@v2 | ||
with: | ||
dotnet-version: | | ||
6.0.x | ||
8.0.x | ||
- name: Restore dependencies | ||
run: dotnet restore -p:TargetFramework=net6.0 UnitTest | ||
- name: Build-6.0 | ||
run: dotnet build --framework net6.0 --no-restore UnitTest | ||
- name: Test-6.0 | ||
run: dotnet test --framework net6.0 --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover UnitTest | ||
run: dotnet restore -p:TargetFramework=net8.0 UnitTest | ||
- name: Build-8.0 | ||
run: dotnet build --framework net8.0 --no-restore UnitTest | ||
- name: Test-8.0 | ||
run: dotnet test --framework net8.0 --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover UnitTest | ||
- name: Codecov coverage upload | ||
uses: codecov/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[*.cs] | ||
|
||
# IDE0022: Use block body for method | ||
csharp_style_expression_bodied_methods = when_on_single_line |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"Version": 1, | ||
"WorkspaceRootPath": "C:\\Users\\Roger Castaldo\\source\\repos\\BPMEngine\\BPMNEngine\\", | ||
"Documents": [], | ||
"DocumentGroupContainers": [ | ||
{ | ||
"Orientation": 1, | ||
"VerticalTabListWidth": 256, | ||
"DocumentGroups": [ | ||
{ | ||
"DockedHeight": 275, | ||
"SelectedChildIndex": -1, | ||
"Children": [ | ||
{ | ||
"$type": "Bookmark", | ||
"Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}" | ||
}, | ||
{ | ||
"$type": "Bookmark", | ||
"Name": "ST:129:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}" | ||
}, | ||
{ | ||
"$type": "Bookmark", | ||
"Name": "ST:128:0:{1fc202d4-d401-403c-9834-5b218574bb67}" | ||
}, | ||
{ | ||
"$type": "Bookmark", | ||
"Name": "ST:0:0:{004be353-6879-467c-9d1e-9ac23cdf6d49}" | ||
}, | ||
{ | ||
"$type": "Bookmark", | ||
"Name": "ST:0:0:{e1b7d1f8-9b3c-49b1-8f4f-bfc63a88835d}" | ||
} | ||
] | ||
}, | ||
{ | ||
"DockedHeight": 275, | ||
"SelectedChildIndex": -1, | ||
"Children": [ | ||
{ | ||
"$type": "Bookmark", | ||
"Name": "ST:0:0:{a80febb4-e7e0-4147-b476-21aaf2453969}" | ||
}, | ||
{ | ||
"$type": "Bookmark", | ||
"Name": "ST:0:0:{d78612c7-9962-4b83-95d9-268046dad23a}" | ||
}, | ||
{ | ||
"$type": "Bookmark", | ||
"Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}" | ||
}, | ||
{ | ||
"$type": "Bookmark", | ||
"Name": "ST:0:0:{320fd13f-632f-4b16-9527-a1adfe555f6c}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using BPMNEngine.Elements; | ||
using System.Text.RegularExpressions; | ||
|
||
namespace BPMNEngine.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)] | ||
internal class AttributeRegexAttribute(string name, string regex) : Attribute | ||
{ | ||
public string Name { get; private init; } = name; | ||
public Regex Reg { get; private init; } = new Regex(regex, RegexOptions.Compiled|RegexOptions.ECMAScript); | ||
|
||
public bool IsValid(AElement elem) | ||
=> elem[Name]!=null && Reg.IsMatch(elem[Name]); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace BPMNEngine.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)] | ||
internal class RequiredAttributeAttribute(string name) : Attribute | ||
{ | ||
public string Name { get; private init; } = name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
namespace BPMNEngine.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Class,AllowMultiple=true,Inherited =true)] | ||
internal class ValidParentAttribute : Attribute | ||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)] | ||
internal class ValidParentAttribute(Type parent) : Attribute | ||
{ | ||
public Type Parent { get; private init; } | ||
|
||
public ValidParentAttribute(Type parent) | ||
{ | ||
Parent = parent; | ||
} | ||
public Type Parent { get; private init; } = parent; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace BPMNEngine.Attributes | ||
{ | ||
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] | ||
internal class XMLTagAttribute(string prefix, string name) : Attribute | ||
{ | ||
public string Name { get; private init; } = name; | ||
public string Prefix { get; private init; } = prefix; | ||
|
||
public override string ToString() | ||
=> (Prefix==null ? Name : $"{Prefix}:{Name}"); | ||
|
||
internal bool Matches(XmlPrefixMap map, string tagName) | ||
=> tagName.Equals(ToString(), StringComparison.CurrentCultureIgnoreCase) | ||
||tagName.Equals(Name, StringComparison.CurrentCultureIgnoreCase) | ||
||(Prefix != null && map.IsMatch(Prefix, Name, tagName)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.