예제 #1
0
 public async static Task <string> GetEmailByExchangeId(MutuaideService service, string messageId)
 {
     return(service.GetEmailByExchangeId(messageId).InnerXml);
 }
예제 #2
0
        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();
        }
예제 #3
0
 public static void callAsync(MutuaideService service, string messageId)
 {
     Console.WriteLine("send...");
     service.GetEmailByExchangeIdAsync("<" + messageId + ">");
 }