public static MainClient GetMainClient(Miljoe miljoe) { MainClient client = new MainClient(); client.Endpoint.Address = new System.ServiceModel.EndpointAddress(RKNet_Utils.GetEndpointAddress(miljoe)); return(client); }
private void BackgroundWorkerValidateParty_DoWork(object sender, DoWorkEventArgs e) { backgroundWorkerValidateParty.ReportProgress(0, "Validerer partid og password"); try { validatePartyResponse = RKNet_Utils.GetValidatePartyResponse(miljoe, partyID, password); backgroundWorkerValidateParty.ReportProgress(0, "Partid og password valideret: " + validatePartyResponse.backEndStatusCode + " " + validatePartyResponse.backEndStatusText); } catch (Exception f) { backgroundWorkerValidateParty.ReportProgress(0, f.Message); } }