private static void ProcessXinGeSender(HttpContext context) { if (context.Request["action"] == "getlist") { XingePushPlugins xinGePlugins = XingePushPlugins.Instance(); context.Response.ContentType = "application/json"; context.Response.Write(xinGePlugins.GetPlugins().ToJsonString()); } else { if (context.Request["action"] == "getmetadata") { context.Response.ContentType = "text/xml"; XingePush xinGePlugins = XingePush.CreateInstance(context.Request["name"]); if (xinGePlugins == null) { context.Response.Write("<xml></xml>"); } else { context.Response.Write(xinGePlugins.GetMetaData().OuterXml); } } } }
public static XingePush CreateInstance(string name) { return(XingePush.CreateInstance(name, null)); }