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.
Merge pull request #97 from PHOENIXCONTACT/feature/unknown-activity-a…
…borted Port: Add UnknownActivityAborted session
- Loading branch information
Showing
5 changed files
with
60 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; } | ||
} | ||
} |
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