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
SQLiteDatabase Plugin 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="MJGraf" data-source="post: 1039640" data-attributes="member: 17886"><p>Just a thought:</p><p>I haven't managed to dig deep into the installer, but in the CustomActions class I see that we startup the plugin manager in maintenance mode, i.e. plugins should not be auto activated. @[USER=48495]morpheus_xx[/USER]: Is this still true? I'm asking because in the log above it says a few times "PluginManager: Trying to activate plugin ...", which should not be the case in maintenance mode.</p><p>This should currently not have any influence on SQLiteDatabase, because it doesn't have a PluginStateTracker (no database plugin has such). SQLiteDatabase is registered as a plugin service and, hence, all the initialization is done in the constructor of SQLiteDatabase, which means it is executed in any case when the plugin is enabled - even if it is not activated.</p><p>If we still use maintenance mode (hence the question above), and my initialization code for SQLiteDatabase (currently in the constructor of SQLiteDatabase) is a problem for the installer (although I don't really know why), I could implement a PluginStateTracker for SQLiteDatabase and execute the initialization code in the Activated() method. That way this code would not be executed during install (assuming we use maintenance mode), but only on a real startup of MP2 Server Service.</p></blockquote><p></p>
[QUOTE="MJGraf, post: 1039640, member: 17886"] Just a thought: I haven't managed to dig deep into the installer, but in the CustomActions class I see that we startup the plugin manager in maintenance mode, i.e. plugins should not be auto activated. @[USER=48495]morpheus_xx[/USER]: Is this still true? I'm asking because in the log above it says a few times "PluginManager: Trying to activate plugin ...", which should not be the case in maintenance mode. This should currently not have any influence on SQLiteDatabase, because it doesn't have a PluginStateTracker (no database plugin has such). SQLiteDatabase is registered as a plugin service and, hence, all the initialization is done in the constructor of SQLiteDatabase, which means it is executed in any case when the plugin is enabled - even if it is not activated. If we still use maintenance mode (hence the question above), and my initialization code for SQLiteDatabase (currently in the constructor of SQLiteDatabase) is a problem for the installer (although I don't really know why), I could implement a PluginStateTracker for SQLiteDatabase and execute the initialization code in the Activated() method. That way this code would not be executed during install (assuming we use maintenance mode), but only on a real startup of MP2 Server Service. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
SQLiteDatabase Plugin for MP2
Contact us
RSS
Top
Bottom