/** * 加载语音存储对象 **/ private static void loadRecordSave() { string execClass = XmlService.getProperty("RecordSave", "classname"); Type type = Type.GetType(execClass); saveHelper = (RecordSave)Activator.CreateInstance(type); }
/** * 给web服务发送信息 **/ private static void SendMessage(string sql) { string address = XmlService.getProperty("WebServer", "uri"); Uri uri = new Uri(address); WebClient client = new WebClient(); client.UploadStringCompleted += new UploadStringCompletedEventHandler(client_UploadStringCompleted); client.UploadStringAsync(uri, sql); }