-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial implementation - anything as a token - anything as initialization (unfinished) - sm standard requests turned to commands (unfinished) * Token -> Object * Restore * Works! * Fixes on token handling - token identity is now taken under consideration and tokens are not duplicated in inputs - non-outputting structured activities are now producing control token * Tokens reworked Everything can be token now! * Little cleanup * 0.12.3-alpha * Multiple changes
- Loading branch information
1 parent
14dcad6
commit dc14436
Showing
259 changed files
with
4,175 additions
and
2,493 deletions.
There are no files selected for viewing
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,10 @@ | ||
[*.cs] | ||
|
||
# S3358: Ternary operators should not be nested | ||
dotnet_diagnostic.S3358.severity = none | ||
|
||
# S2094: Classes should not be empty | ||
dotnet_diagnostic.S2094.severity = none | ||
dotnet_diagnostic.S2326.severity = none | ||
dotnet_diagnostic.S1121.severity = none | ||
dotnet_diagnostic.CS0067.severity = none |
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
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
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
20 changes: 0 additions & 20 deletions
20
Core/Stateflows.Common/Activities/Extensions/TokenInfoExtensions.cs
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
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
namespace Stateflows.Common | ||
{ | ||
#pragma warning disable S2094 // Classes should not be empty | ||
public abstract class RecurringEvent : TimeEvent | ||
#pragma warning restore S2094 // Classes should not be empty | ||
{ } | ||
} |
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
23 changes: 7 additions & 16 deletions
23
Core/Stateflows.Common/Extensions/PayloadObjectExtensions.cs
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,23 +1,14 @@ | ||
using System.Linq; | ||
using System.Collections.Generic; | ||
|
||
namespace Stateflows.Common.Data | ||
namespace Stateflows.Common.Data | ||
{ | ||
public static class PayloadObjectExtensions | ||
{ | ||
public static Event<T> ToEvent<T>(this T obj) | ||
=> new Event<T>() { Payload = obj }; | ||
|
||
public static Request<TRequestPayload, TResponsePayload> ToRequest<TRequestPayload, TResponsePayload>(this TRequestPayload obj) | ||
=> new Request<TRequestPayload, TResponsePayload>() { Payload = obj }; | ||
|
||
public static InitializationRequest<T> ToInitializationRequest<T>(this T obj) | ||
=> new InitializationRequest<T>() { Payload = obj }; | ||
public static Event<T> ToEvent<T>(this T payload) | ||
=> new Event<T>() { Payload = payload }; | ||
|
||
public static Token<T> ToToken<T>(this T obj) | ||
=> new Token<T>() { Payload = obj }; | ||
public static Request<TRequestPayload, TPayload> ToRequest<TRequestPayload, TPayload>(this TRequestPayload payload) | ||
=> new Request<TRequestPayload, TPayload>() { Payload = payload }; | ||
|
||
public static IEnumerable<Token<T>> ToTokens<T>(this IEnumerable<T> objs) | ||
=> objs.Select(obj => obj.ToToken()).ToArray(); | ||
public static InitializationRequest<TPayload> ToInitializationRequest<TPayload>(this TPayload payload) | ||
=> new InitializationRequest<TPayload>() { Payload = payload }; | ||
} | ||
} |
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.