コード例 #1
0
 private Yinhe.MessageSender.InvokeResult method(List <string> phoneNumber, string content)
 {
     Yinhe.MessageSender.InvokeResult result = new Yinhe.MessageSender.InvokeResult();
     try
     {
         ISmsSender sender = null;                                                                                // new SmsSenderXH();
         sender = (ISmsSender)Activator.CreateInstance("Yinhe.MessageSender", SysAppConfig.SenderClass).Unwrap(); //"Yinhe.ProcessingCenter.SynAD.PathAnalyseXH"
         if (SysAppConfig.IsSendSms)
         {
             result = sender.SendSMSByNumberList(phoneNumber, content);
         }
     }
     catch (Exception ex)
     {
         result.Status  = MessageSender.Status.Failed;
         result.Message = ex.Message;
     }
     return(result);
 }