Merged master into docs_upgrade

This commit is contained in:
Michael Harding committed 2019-02-15 17:00:53 -05:00
commit 7f4bb184a1
9 files changed
+10 -41

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ namespace bts.api.orderman {
public OrderRecordImmutable order { get; }
public override bool Equals(object obj) => (obj is OrderSecurity os) && Equals(os);
public bool Equals(OrderSecurity other) => order.Key == other.order.Key && security == other.security;
public bool Equals(OrderSecurity other) => order.Equals(other.order) && security == other.security;
public override int GetHashCode() => (security, order).GetHashCode();
public static bool operator == (OrderSecurity left, OrderSecurity right) => left.Equals(right);
+5 -5
View File
@@ -175,12 +175,12 @@ namespace mbts.spark {
clone.Remove(o.order.Key);
}
}
foreach (var o in table.changed) {
if (o.order.is_active()) {
clone[o.order.Key] = o;
foreach (var o in table.changes) {
if (o.Old.order.is_active()) {
clone.Remove(o.Old.order.Key);
}
else {
clone.Remove(o.order.Key);
if (o.New.order.is_active()) {
clone.Add(o.New.order.Key, o.New);
}
}
foreach (var o in table.added) {