-
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.
- overwrite on IExecutionContext registering - exception on not found embedded activity - definition and runtime exceptions
- Loading branch information
1 parent
408460a
commit 6b119e4
Showing
49 changed files
with
385 additions
and
465 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
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
21 changes: 21 additions & 0 deletions
21
Core/Stateflows.Common/Exceptions/BehaviorDefinitionException.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
|
||
namespace Stateflows.Common.Exceptions | ||
{ | ||
#pragma warning disable S3925 // "ISerializable" should be implemented correctly | ||
public class BehaviorDefinitionException : StateflowsDefinitionException | ||
{ | ||
public BehaviorClass BehaviorClass { get; } | ||
|
||
public BehaviorDefinitionException(string message, BehaviorClass behaviorClass) : base(message) | ||
{ | ||
BehaviorClass = behaviorClass; | ||
} | ||
|
||
public BehaviorDefinitionException(string message, BehaviorClass behaviorClass, Exception innerException) : base(message, innerException) | ||
{ | ||
BehaviorClass = behaviorClass; | ||
} | ||
} | ||
#pragma warning restore S3925 // "ISerializable" should be implemented correctly | ||
} |
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
12 changes: 12 additions & 0 deletions
12
Core/Stateflows.Common/Exceptions/StateflowsDefinitionException.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
|
||
namespace Stateflows.Common.Exceptions | ||
{ | ||
#pragma warning disable S3925 // "ISerializable" should be implemented correctly | ||
public class StateflowsDefinitionException : StateflowsException | ||
{ | ||
public StateflowsDefinitionException(string message) : base(message) { } | ||
public StateflowsDefinitionException(string message, Exception innerException) : base(message, innerException) { } | ||
} | ||
#pragma warning restore S3925 // "ISerializable" should be implemented correctly | ||
} |
12 changes: 12 additions & 0 deletions
12
Core/Stateflows.Common/Exceptions/StateflowsRuntimeException.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
|
||
namespace Stateflows.Common.Exceptions | ||
{ | ||
#pragma warning disable S3925 // "ISerializable" should be implemented correctly | ||
public class StateflowsRuntimeException : StateflowsException | ||
{ | ||
public StateflowsRuntimeException(string message) : base(message) { } | ||
public StateflowsRuntimeException(string message, Exception innerException) : base(message, innerException) { } | ||
} | ||
#pragma warning restore S3925 // "ISerializable" should be implemented correctly | ||
} |
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
5 changes: 3 additions & 2 deletions
5
...flows/Activities/Context/ContextHolder.cs → ...vities/Context/ActivitiesContextHolder.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,14 +1,15 @@ | ||
using System.Threading; | ||
using Stateflows.Common; | ||
using Stateflows.Common.Context; | ||
|
||
namespace Stateflows.Activities.Context | ||
{ | ||
public static class ContextHolder | ||
public static class ActivitiesContextHolder | ||
{ | ||
public static readonly AsyncLocal<IActivityContext> ActivityContext = new AsyncLocal<IActivityContext>(); | ||
public static readonly AsyncLocal<INodeContext> NodeContext = new AsyncLocal<INodeContext>(); | ||
public static readonly AsyncLocal<IFlowContext> FlowContext = new AsyncLocal<IFlowContext>(); | ||
public static readonly AsyncLocal<IExecutionContext> ExecutionContext = new AsyncLocal<IExecutionContext>(); | ||
public static AsyncLocal<IExecutionContext> ExecutionContext => CommonContextHolder.ExecutionContext; | ||
public static readonly AsyncLocal<IExceptionContext> ExceptionContext = new AsyncLocal<IExceptionContext>(); | ||
} | ||
} |
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.