public async static Task <string> GetEmailByExchangeId(MutuaideService service, string messageId) { return(service.GetEmailByExchangeId(messageId).InnerXml); }
static void Main(string[] args) { // IMutuaideService wcfTest = new MutuaideServiceClient("Soap"); var exchangeId = new[] { "" }; //var result = wcfTest.GetEmailByExchangeId("<[email protected]>"); MutuaideService t = new MutuaideService(); //var result = t.UpdateCustomerBin("136542499", "513152"); //Console.Write(result.InnerXml); if (string.IsNullOrEmpty(ConfigurationSettings.AppSettings["messageId"])) { exchangeId = new[] { "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<[email protected]> ", "<*****@*****.**> ", "<*****@*****.**> ", "<80394B8A7F2041D09C6612762F2A96E81CFFF1988326@CRM_MAILBOX.JSI-GROUPE.COM> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> ", "<*****@*****.**> " }; } else { exchangeId = ConfigurationSettings.AppSettings["messageId"].Split(','); } foreach (string s in exchangeId) { callAsync(t, s); } //var x = t.GetEmailByExchangeId("<*****@*****.**>"); //Console.Write(x.InnerXml); Console.Read(); }
public static void callAsync(MutuaideService service, string messageId) { Console.WriteLine("send..."); service.GetEmailByExchangeIdAsync("<" + messageId + ">"); }