示例#1
0
        public static ValidatePartyResponse GetValidatePartyResponse(Miljoe miljoe, string partyID, string password)
        {
            ServiceReferenceTBIS.MainClient client = GetMainClient(miljoe);
            client.ClientCredentials.UserName.UserName = partyID;
            client.ClientCredentials.UserName.Password = password;
            ValidatePartyResponse response = client.validateParty(partyID, password);

            return(response);
        }
示例#2
0
 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); }
 }