-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes process.bpmn env config pattern more generic and reusable
- Loading branch information
1 parent
f58c0ca
commit 0845a67
Showing
5 changed files
with
57 additions
and
55 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
21 changes: 21 additions & 0 deletions
21
...n.App.Core/Internal/Process/Elements/AltinnExtensionProperties/AltinnEnvironmentConfig.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.Xml.Serialization; | ||
|
||
namespace Altinn.App.Core.Internal.Process.Elements.AltinnExtensionProperties; | ||
|
||
/// <summary> | ||
/// Wrapper for environment specific configuration values | ||
/// </summary> | ||
public sealed class AltinnEnvironmentConfig | ||
{ | ||
/// <summary> | ||
/// The environment the configuration is applicable for. An omitted value indicates validity for all environments. | ||
/// </summary> | ||
[XmlAttribute("env")] | ||
public string? Environment { get; set; } | ||
|
||
/// <summary> | ||
/// The configuration value | ||
/// </summary> | ||
[XmlText] | ||
public required string Value { get; set; } | ||
} |
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