Пример #1
0
 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);
             }
         }
     }
 }
Пример #2
0
 public static XingePush CreateInstance(string name)
 {
     return(XingePush.CreateInstance(name, null));
 }