Intra-plugin communication

Mar 1, 2011 at 8:36 AM


Is there an easy way to communicate between multiple loaded plugins?

I assume that i can access them through e.g. player.PluginsManager.GenericPlugins, but i wondered if anybody had a code sample demonstrating this?

- Loke

Mar 1, 2011 at 3:17 PM

lokexstream, here's the code used by SMF to access the Generic plugins:

             IEnumerable<IGenericPlugin> plugins = PluginsManager.GenericPlugins
                .Where(i => !i.IsValueCreated)
                .Select(i => i.Value);

You should be able to do the same thing to get at these plugins instances.

Tim Greenfield

Mar 21, 2011 at 10:58 AM

Thanks Tim!