changing from tuple to simple OrderSecPiq for sanity

This commit is contained in:
Jake Norbut committed 2019-04-16 10:20:09 -05:00
1 parent fa287b14ef
commit d9b4e21c61
3 files changed
+3 -3

No files matched your search

@@ -19,7 +19,7 @@ namespace bts.shell {
readonly OrdersModel _model;
readonly ErrorReporter _error_reporter;
IReadOnlyDictionary<uint, SecurityMD> _md_map;
TableUpdate<(SecurityImmutable? sec, OrderRecordImmutable order), uint> _orders;
TableUpdate<OrderSecPiq, uint> _orders;
IDisposable _dispose;
[ImportingConstructor]
@@ -55,7 +55,7 @@ namespace bts.shell {
void _on_activity(Activity activity) =>
_activity_notifications.process_item(activity);
void _on_orders(TableUpdate<(SecurityImmutable?,OrderRecordImmutable),uint> update) {
void _on_orders(TableUpdate<OrderSecPiq,uint> update) {
// must update notification_service_data_cache first, some of the predicate/triggers (esp. ToastNotifications) will use the notification_service_data_cache to lookup order-history
_data_cache.update(update.as_iincremental());
foreach (var o in update.added.Concat(update.changed))
@@ -50,7 +50,7 @@ namespace bts.shell {
public DateTime last_order_reset_time { get; private set; }
public bool is_first_order_update { get; private set; }
internal void update(IIncrementalUpdate<(SecurityImmutable? sec, OrderRecordImmutable order), uint> data) {
internal void update(IIncrementalUpdate<OrderSecPiq, uint> data) {
DateTime now = DateTime.Now;
if (data.removed.Count == _order_cache.Count) {
last_order_reset_time = now;