public void PlaceStopOrder(StopOrderSpecification stopOrderSpecification, OnInstructionResponse instructionCallback, OnFailure failureCallback) { OrderResponseHandler handler = new OrderResponseHandler(); SendRequest(stopOrderSpecification, handler, delegate { instructionCallback(handler.InstructionId); }, failureCallback); }
public void PlaceStopOrder(StopOrderSpecification stopOrderSpecification, OnInstructionResponse instructionCallback, OnFailure failureCallback) { OrderResponseHandler handler = new OrderResponseHandler(); this.SendRequest((IRequest)stopOrderSpecification, (Handler)handler, (Session.OnSucessfulRequest)(() => instructionCallback(handler.InstructionId)), failureCallback); }