public bool CheckForNewFiles(BrokerServicePollShipment shipment) { var client = GenerateProxy(shipment); OperationContext = "GetNewFiles"; return(client.CheckIfAvailableFilesEC(shipment.Username, shipment.Password, shipment.Poll)); }
private void SetUpCheckShipment() { this.ach_pollNewFiles.AssignActions( () => { InvokeService(_brokerServiceEpFunc.CheckForNewFiles, CheckNewFilesShipment, ref CheckNewFilesResult, "Poll for new files"); }, () => { SetViewedItem(CheckNewFilesShipment, "Poll for New Files"); }, () => { InvokeSaveShipment(CheckNewFilesShipment); }, () => { CheckNewFilesShipment = InvokeLoad <BrokerServicePollShipment>(); }, () => { SetViewedItem(CheckNewFilesResult, "Poll Result"); } ); }
public BrokerServiceFormEC2() { InitializeComponent(); _brokerServiceEpFunc = new BrokerServiceEndPointFunctionEC2(); _brokerServiceEpFunc.ReturnMessageXml += ReturnMessageXmlHandler; _brokerServiceStreanedEpFunc = new BrokerServiceStreamedEndPointFunctionEC2(); _brokerServiceStreanedEpFunc.ReturnMessageXml += ReturnMessageXmlHandler; ShipmentTest = new BaseShipment(); InitiateBrokerServiceShipment = new InitiateBrokerServiceShipmentEC2(); GetAvailableFilesShipment = new GetAvailableFilesShipmentEC2(); UploadFileStreamedShipment = new UploadFileStreamedShipment(); DownloadFileStreamedShipment = new DownloadFileStreamedShipment(); CheckNewFilesShipment = new BrokerServicePollShipment(); UploadFileStreamedReceiptResult = new UploadFileStreamedResult(); SetUpCheckShipment(); SetupObjForPropertyGrid(); }