foreach (var order in Account.Orders)
{[INDENT]if (order.OrderState == OrderState.Working && !order.GetOwnerStrategy().Equals(this))
{[/INDENT][INDENT=2]sb.Append("Other orders are in, doing nothing. ");
return;[/INDENT][INDENT]
}[/INDENT]
}
lock (Account) { // strategy logic }
Is my assumption correct? Does it make sense to investigate a more complicated locking approach? Thanks!
P.S. Typing this out prompted me to look at the possible values of OrderState... maybe checking for Submitted will be enough??

Comment