home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
How to catch fired events in plugin?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="geoffstewart" data-source="post: 648905" data-attributes="member: 83396"><p>Hi,</p><p></p><p>I hope this is the right place for my question.</p><p></p><p>I'd like the plugin I'm working with to register to do some work when a new schedule is added. I found that in the TvEngine, that in TVController.cs, there is a method onNewSchedule() that "fires" an event.</p><p></p><p>How can I get a plugin to register for that event?</p><p></p><p>Also, once registered, is the callback done in a seperate thread in an asynch manner? Or does use the current thread?</p><p></p><p>Thanks.</p><p></p><p>Geoff</p><p></p><p>I think I found it myself... sorry.</p><p></p><p>[CODE]</p><p> ITvServerEvent events = GlobalServiceProvider.Instance.Get<ITvServerEvent>();</p><p> events.OnTvServerEvent += new TvServerEventHandler(events_OnTvServerEvent);</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="geoffstewart, post: 648905, member: 83396"] Hi, I hope this is the right place for my question. I'd like the plugin I'm working with to register to do some work when a new schedule is added. I found that in the TvEngine, that in TVController.cs, there is a method onNewSchedule() that "fires" an event. How can I get a plugin to register for that event? Also, once registered, is the callback done in a seperate thread in an asynch manner? Or does use the current thread? Thanks. Geoff I think I found it myself... sorry. [CODE] ITvServerEvent events = GlobalServiceProvider.Instance.Get<ITvServerEvent>(); events.OnTvServerEvent += new TvServerEventHandler(events_OnTvServerEvent); [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
How to catch fired events in plugin?
Contact us
RSS
Top
Bottom