public void UsingCommands() { //Save user/pass in session MySession session = new MySession {User="******", Pass="******", Site="541"}; //Get webservice from session MyWebService service = new MyWebService("www.telerik.com"); //New up a search patient command var searchCommand = new SearchPatientCommand(service, "Z0001"); //Use the command runner to deal with the ceremony of connect/login/disconnect IEnumerable<PatientTO> patients = CommandRunner.Run(session, service, searchCommand); }
public void UsingCommands() { //Save user/pass in session MySession session = new MySession { User = "******", Pass = "******", Site = "541" }; //Get webservice from session MyWebService service = new MyWebService("www.telerik.com"); //New up a search patient command var searchCommand = new SearchPatientCommand(service, "Z0001"); //Use the command runner to deal with the ceremony of connect/login/disconnect IEnumerable <PatientTO> patients = CommandRunner.Run(session, service, searchCommand); }