From a4e21f67f698a3626064df9cf8a266f27d2b5c73 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Sat, 30 Sep 2017 15:00:10 +0000 Subject: [PATCH] Merged --- .../core/GlobalExtensions/TaskExtensions.cs | 2 +- .../Synthetic2/SyntheticEditor2.xaml | 17 +++--- .../Synthetic2/SyntheticEditor2.xaml.cs | 29 ++++++++-- .../Synthetic2/SyntheticEditorDialog.xaml | 2 +- .../Securities/Synthetic2/VM/RowModel.cs | 12 ++-- .../Shell/Securities/Synthetic2/VM/RowVM.cs | 4 +- .../Synthetic2/VM/SyntheticEditorVM2.cs | 3 +- .../SecuritySelectorControl/SecurityItem.cs | 10 +--- .../SecuritySelectorControl.xaml.cs | 2 +- src/client/spark/view/Utility/EnumHelper.cs | 30 ++-------- .../api/Channels/QuickBusClientChannel.cs | 24 +++++++- .../spark_api/security/SecurityHelper.cs | 5 ++ .../spark_core/core/AnonymousDisposable.cs | 25 ++++++++- src/lib/domain_model/Security.proto | 6 ++ .../sparkd/risk_limits/RiskLimitManager.cpp | 5 +- .../sparkd/risk_limits/RiskLimitManager.h | 2 + src/server/sparkd/risk_limits/RiskLimiter.cpp | 5 ++ src/server/sparkd/risk_limits/RiskLimiter.h | 4 ++ .../sparkd/risk_limits/SharedRiskLimiter.h | 7 ++- .../risk_limits/tests/RiskLimitsTests.cpp | 55 ++++++++++++++----- 20 files changed, 172 insertions(+), 77 deletions(-) diff --git a/src/client/spark/core/GlobalExtensions/TaskExtensions.cs b/src/client/spark/core/GlobalExtensions/TaskExtensions.cs index 8a7b2e58f..33163970c 100644 --- a/src/client/spark/core/GlobalExtensions/TaskExtensions.cs +++ b/src/client/spark/core/GlobalExtensions/TaskExtensions.cs @@ -47,7 +47,7 @@ namespace System.Threading.Tasks await Task.Delay(delay); if (!cts.IsCancellationRequested) action(); }); - return Disposable.Create(cts.Cancel); + return Disposable.Create((Action)cts.Cancel); } } } \ No newline at end of file diff --git a/src/client/spark/mspark/Shell/Securities/Synthetic2/SyntheticEditor2.xaml b/src/client/spark/mspark/Shell/Securities/Synthetic2/SyntheticEditor2.xaml index 72236d992..a9d49b804 100644 --- a/src/client/spark/mspark/Shell/Securities/Synthetic2/SyntheticEditor2.xaml +++ b/src/client/spark/mspark/Shell/Securities/Synthetic2/SyntheticEditor2.xaml @@ -5,6 +5,7 @@ xmlns:usp="clr-namespace:mbts.ui.spark"> + @@ -116,7 +117,7 @@ - + - - + + + - Name + Name - + Pricing + +