Esempio n. 1
0
		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;
		}
Esempio n. 2
0
        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);
        }