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 2
Plugin Development
Plugins that add more UPNP devices to UPnPServer
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="McGoober" data-source="post: 753141" data-attributes="member: 24098"><p>I'm in the process of creating a plugin that will add a new UPNP device and device services to the MP2 server. But currently, access to the UPnPServer object in the MP2 server isn't exposed. UPnpBackendServer inherits from UPnpServer, and it's instance is held in BackendServer. My current workaround for this is to expose a getter property called UPnpServer in BackendServer and in IBackendServer to allow access whilst I develop the plugin. A simple call to ServiceRegistration.Get<IBackendServer>().UPnpServer solves my problem, but is there another, more elegant way?</p></blockquote><p></p>
[QUOTE="McGoober, post: 753141, member: 24098"] I'm in the process of creating a plugin that will add a new UPNP device and device services to the MP2 server. But currently, access to the UPnPServer object in the MP2 server isn't exposed. UPnpBackendServer inherits from UPnpServer, and it's instance is held in BackendServer. My current workaround for this is to expose a getter property called UPnpServer in BackendServer and in IBackendServer to allow access whilst I develop the plugin. A simple call to ServiceRegistration.Get<IBackendServer>().UPnpServer solves my problem, but is there another, more elegant way? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Plugins that add more UPNP devices to UPnPServer
Contact us
RSS
Top
Bottom