コード例 #1
0
 public InstructionExecutionContext(InvestorInstruction investorInstruction, Action <InvestorInstructionExecutedEventArgs> instructionExecutedCallBack, Action <string> instructionFailedCallback)
 {
     this.Instruction = investorInstruction;
     this.instructionExecutedCallBack   = instructionExecutedCallBack;
     this.instructionFailedCallback     = instructionFailedCallback;
     this.initialQuantity               = investorInstruction.Quantity;
     this.RemainingQuantityToBeExecuted = investorInstruction.Quantity;
     this.Price = investorInstruction.Price;
     this.Way   = investorInstruction.Way;
     this.AllowPartialExecution = investorInstruction.AllowPartialExecution;
 }
コード例 #2
0
 protected bool Equals(InvestorInstruction other)
 {
     return(this.InvestorInstructionIdentifier == other.InvestorInstructionIdentifier && this.GoodTill.Equals(other.GoodTill) && this.AllowPartialExecution == other.AllowPartialExecution && this.Price == other.Price && this.Quantity == other.Quantity && this.Way == other.Way);
 }