public MainPage() { InitializeComponent(); try { var services = new Services(); // First service call services.LoginFacade.GetLogin(this.OnGetLoginComplete); // Second service var request = new UpdateLoginRequest() { Payload = "Steve (calling UpdateLogin)" }; services.LoginFacade.UpdateLogin(request, this.OnUpdateLoginComplete); // Third service services.LoginFacade.WriteToLog(null); } catch (Exception e) { this.ErrorTextBlock.Text = Environment.NewLine + "Exception: " + e.Message; } }
public UpdateLoginResponse UpdateLogin(UpdateLoginRequest request) { return new UpdateLoginResponse() { Payload = "Updated " + request.Payload }; }