-
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.
added DerivedCfg parameters in metadata readonly and nullable
- Loading branch information
1 parent
b8c2948
commit c4e5008
Showing
10 changed files
with
183 additions
and
48 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
39 changes: 39 additions & 0 deletions
39
Artesian/Artesian.SDK/Dto/DerivedCfg/DerivedCfgCoalesceReadOnly.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,39 @@ | ||
using Artesian.SDK.Dto.DerivedCfg.Enums; | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace Artesian.SDK.Dto.DerivedCfg | ||
{ | ||
/// <summary> | ||
/// DerivedCoalesce Configuration Readonly | ||
/// </summary> | ||
public record DerivedCfgCoalesceReadOnly : DerivedCfgCoalesce | ||
{ | ||
/// <summary> | ||
/// DerivedCoalesce constructor | ||
/// </summary> | ||
/// <param name="cfg"></param> | ||
public DerivedCfgCoalesceReadOnly(DerivedCfgCoalesce cfg) | ||
{ | ||
// Copy properties from the original cfg to the read-only version | ||
this.Version = cfg.Version; | ||
this.DerivedAlgorithm = cfg.DerivedAlgorithm; | ||
this.OrderedReferencedMarketDataIds = new List<int>(cfg.OrderedReferencedMarketDataIds).AsReadOnly(); | ||
// Copy other properties as needed | ||
} | ||
|
||
/// <summary> | ||
/// MarketData ReferenceIds list | ||
/// </summary> | ||
public new IReadOnlyList<int> OrderedReferencedMarketDataIds { get; } | ||
/// <summary> | ||
/// DerivedAlgorithm | ||
/// </summary> | ||
public new DerivedAlgorithm DerivedAlgorithm { get; } | ||
/// <summary> | ||
/// Version | ||
/// </summary> | ||
public new int Version { get; } | ||
|
||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
Artesian/Artesian.SDK/Dto/DerivedCfg/DerivedCfgMuvReadOnly.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,32 @@ | ||
using Artesian.SDK.Dto.DerivedCfg.Enums; | ||
|
||
namespace Artesian.SDK.Dto.DerivedCfg | ||
{ | ||
/// <summary> | ||
/// DerivedMuv Configuration Readonly | ||
/// </summary> | ||
public record DerivedCfgMuvReadOnly : DerivedCfgMuv | ||
{ | ||
/// <summary> | ||
/// DerivedCoalesce constructor | ||
/// </summary> | ||
/// <param name="cfg"></param> | ||
public DerivedCfgMuvReadOnly(DerivedCfgMuv cfg) | ||
{ | ||
// Copy properties from the original cfg to the read-only version | ||
this.Version = cfg.Version; | ||
this.DerivedAlgorithm = cfg.DerivedAlgorithm; | ||
// Copy other properties as needed | ||
} | ||
|
||
/// <summary> | ||
/// DerivedAlgorithm | ||
/// </summary> | ||
public new DerivedAlgorithm DerivedAlgorithm { get; } | ||
/// <summary> | ||
/// Version | ||
/// </summary> | ||
public new int Version { get; } | ||
|
||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
Artesian/Artesian.SDK/Dto/DerivedCfg/DerivedCfgSumReadOnly.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,39 @@ | ||
using Artesian.SDK.Dto.DerivedCfg.Enums; | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace Artesian.SDK.Dto.DerivedCfg | ||
{ | ||
/// <summary> | ||
/// DerivedSum Configuration Readonly | ||
/// </summary> | ||
public record DerivedCfgSumReadOnly : DerivedCfgSum | ||
{ | ||
/// <summary> | ||
/// DerivedCoalesce constructor | ||
/// </summary> | ||
/// <param name="cfg"></param> | ||
public DerivedCfgSumReadOnly(DerivedCfgSum cfg) | ||
{ | ||
// Copy properties from the original cfg to the read-only version | ||
this.Version = cfg.Version; | ||
this.DerivedAlgorithm = cfg.DerivedAlgorithm; | ||
this.OrderedReferencedMarketDataIds = new List<int>(cfg.OrderedReferencedMarketDataIds).AsReadOnly(); | ||
// Copy other properties as needed | ||
} | ||
|
||
/// <summary> | ||
/// MarketData ReferenceIds list | ||
/// </summary> | ||
public new IReadOnlyList<int> OrderedReferencedMarketDataIds { get; } | ||
/// <summary> | ||
/// DerivedAlgorithm | ||
/// </summary> | ||
public new DerivedAlgorithm DerivedAlgorithm { get; } | ||
/// <summary> | ||
/// Version | ||
/// </summary> | ||
public new int Version { 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
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