/// <summary> /// Starts the plugin. /// </summary> /// <param name="config">The configuration object for this plugin</param> /// <param name="context">The context for this plugin</param> /// <returns>True if the plugin was successfully started</returns> public bool StartPlugin(Config config, IPluginContext context) { Plugin.Config = config; Plugin.Context = context; // Add content provider ContentProvider = new ContentProvider(); PluginManager.Register(ContentProvider); // Start the watcher Watcher = new Watcher(); PluginManager.Register(Watcher); // Bind to watching event Watcher.StartedWatching += StartedWatching; return(true); }
/// <summary> /// Starts the plugin. /// </summary> /// <param name="config">The configuration object for this plugin</param> /// <param name="context">The context for this plugin</param> /// <returns>True if the plugin was successfully started</returns> public bool StartPlugin(Config config, IPluginContext context) { Plugin.Config = config; Plugin.Context = context; // Add content provider ContentProvider = new ContentProvider(); PluginManager.Register(ContentProvider); // Start the watcher Watcher = new Watcher(); PluginManager.Register(Watcher); // Bind to watching event Watcher.StartedWatching += StartedWatching; return true; }