generated from PHOENIXCONTACT/MORYX-Template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The new type is a session-wrapper for activities that should be aborted, but for which the session is unknown for a cell. It can be created and uses a new session context.
- Loading branch information
1 parent
3863ffb
commit 1f8a5b6
Showing
4 changed files
with
46 additions
and
4 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
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,26 @@ | ||
// Copyright (c) 2024, Phoenix Contact GmbH & Co. KG | ||
// Licensed under the Apache License, Version 2.0 | ||
|
||
using Moryx.AbstractionLayer; | ||
|
||
namespace Moryx.ControlSystem.Cells | ||
{ | ||
/// <summary> | ||
/// Message send by the resource managment when it aborted an activity for an | ||
/// unkown session. | ||
/// </summary> | ||
public class UnknownActivityAborted : ActivityCompleted | ||
{ | ||
internal UnknownActivityAborted(IActivity aborted, Session wrapper) | ||
: base(aborted, wrapper) | ||
{ | ||
aborted.Fail(); | ||
AbortedActivity = aborted; | ||
} | ||
|
||
/// <summary> | ||
/// Activity that was aborted | ||
/// </summary> | ||
public IActivity AbortedActivity { get; } | ||
} | ||
} |