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
Trakt for MP2
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="morpheus_xx" data-source="post: 1240535" data-attributes="member: 48495"><p>There is now a lot possible with the latest rework and the addition of user restrictions. And all is available to plugins of course. The main classes/interfaces are the IUserManagement (which has property "CurrentUser" and more), the related messaging that notifies over user identity changes (UserMessaging.SendUserMessage(UserMessaging.MessageType.UserChanged)<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /> and with this recent commit:</p><p><a href="https://github.com/MediaPortal/MediaPortal-2/commit/d3b8ecf6f8844988f6ae83b48cad8c9b63e7e245#diff-d64ca31bed13d6a9e10f15e6f0026612R60" target="_blank">MP2-735: Extend SettingsManager to allow user profile-specific settings. · MediaPortal/MediaPortal-2@d3b8ecf · GitHub</a></p><p>the "user scope" settings are now related to our user profiles and no longer bound to the logged in Windows account. Note: when the user got changed (see commit linked above), the settings cache will be flushed and new filled with user-specific values. This means it is good <strong><em>not </em></strong>to cache settings instances, but always do a ServiceRegistration.Get<ISettingsManager>.Load(...) which internally caches itself, but now also reflects the current user profile.</p><p></p><p>For trakt this means you should define user-specific settings as UserScope and react on the user change message to re-login at trakt.</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1240535, member: 48495"] There is now a lot possible with the latest rework and the addition of user restrictions. And all is available to plugins of course. The main classes/interfaces are the IUserManagement (which has property "CurrentUser" and more), the related messaging that notifies over user identity changes (UserMessaging.SendUserMessage(UserMessaging.MessageType.UserChanged);) and with this recent commit: [URL="https://github.com/MediaPortal/MediaPortal-2/commit/d3b8ecf6f8844988f6ae83b48cad8c9b63e7e245#diff-d64ca31bed13d6a9e10f15e6f0026612R60"]MP2-735: Extend SettingsManager to allow user profile-specific settings. · MediaPortal/MediaPortal-2@d3b8ecf · GitHub[/URL] the "user scope" settings are now related to our user profiles and no longer bound to the logged in Windows account. Note: when the user got changed (see commit linked above), the settings cache will be flushed and new filled with user-specific values. This means it is good [B][I]not [/I][/B]to cache settings instances, but always do a ServiceRegistration.Get<ISettingsManager>.Load(...) which internally caches itself, but now also reflects the current user profile. For trakt this means you should define user-specific settings as UserScope and react on the user change message to re-login at trakt. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Trakt for MP2
Contact us
RSS
Top
Bottom