/// <summary> /// 初始化插件 /// </summary> /// <param name="_app"></param> /// <returns></returns> public PluginConnectionResult Connect(IPluginHost _app) { IPluginApp app = _app as IPluginApp; if (app != null) { //注册 app.Register(this, app_OnExtendModuleRequest, app_OnExtendModulePost); app.MapPluginRoute(this, "xmlrpc"); } //初始化设置 attr = this.GetAttribute(); bool isChanged = false; if (attr.Settings.Contains("enable_base64_image")) { WeblogRPCService.EnableBase64Images = attr.Settings["enable_base64_image"] == "yes"; } else { WeblogRPCService.EnableBase64Images = false; attr.Settings.Set("enable_base64_image", "no"); isChanged = true; } if (isChanged) { attr.Settings.Flush(); } return(PluginConnectionResult.Success); }
public PluginConnectionResult Connect(IPluginApp app) { DemoPluginApp demo = app as DemoPluginApp; demo.OnPrinting += (string str,ref bool result) => { Console.WriteLine("{0}开始打印:{1}",this.GetType().Name,str); }; return PluginConnectionResult.Success; }
public PluginConnectionResult Connect(IPluginApp app) { DemoPluginApp demo = app as DemoPluginApp; demo.OnPrinting += (string str, ref bool result) => { Console.WriteLine("{0}开始打印:{1}", this.GetType().Name, str); }; return(PluginConnectionResult.Success); }
public PluginConnectionResult Connect(IPluginApp app) { ExtendsPlugin _app=app as ExtendsPlugin; if(_app!=null) { RequestProxry req=new RequestProxry(_app); _app.Register(this,req.HandleGet,req.HandlePost); Cms.Plugins.MapExtendPluginRoute(this); } return PluginConnectionResult.Success; }
public PluginConnectionResult Connect(IPluginHost _app) { IPluginApp app = _app as IPluginApp; if (app != null) { //注册 app.Register(this, app_OnExtendModuleRequest, app_OnExtendModulePost); app.MapPluginRoute(this, "admin/dpicker"); } return(PluginConnectionResult.Success); }
public PluginConnectionResult Connect(IPluginApp app) { ExtendsPlugin _app = app as ExtendsPlugin; if (_app != null) { RequestProxry req = new RequestProxry(_app); _app.Register(this, req.HandleGet, req.HandlePost); Cms.Plugins.MapExtendPluginRoute(this); } return(PluginConnectionResult.Success); }
public PluginConnectionResult Connect(IPluginHost app) { IPluginApp _app = app as IPluginApp; if (_app != null) { Config.Init(this); RequestProxry req = new RequestProxry(_app, this); _app.Register(this, req.HandleGet, req.HandlePost); this.init(); } return(PluginConnectionResult.Success); }
public BaseHandle(IPluginApp app, IPlugin plugin) { this._app = app; this._plugin = plugin; }
public RequestProxry(IPluginApp app, IPlugin plugin) { this._app = app; this._handler = new RequestHandle(plugin); }
public RequestProxry(IPluginApp app, IPlugin plugin) { this._app = app; this._handler = new RequestHandle(plugin); this._mgHandler = new ManageHandle(app,plugin); }
public ManageHandle(IPluginApp app, IPlugin plugin) { this._app = app; this._plugin = plugin; this._baseHandle = new BaseHandle(app, plugin); }
public BaseHandle(IPluginApp app, IPlugin plugin) { this._app = app; this._plugin = plugin; }
public ManageHandle(IPluginApp app,IPlugin plugin) { this._app = app; this._plugin = plugin; this._baseHandle = new BaseHandle(app,plugin); }