private Yinhe.MessageSender.InvokeResult method1(List <SmsClass> list) { 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.SendSMSByClassList(list); } } catch (Exception ex) { result.Status = MessageSender.Status.Failed; result.Message = ex.Message; } return(result); }