private bool AlreadyExists(IActorProducerPlugin plugin) { var pluginType = plugin.GetType(); var alreadyExists = _plugins.Any(p => p.GetType() == pluginType); return(alreadyExists); }
/// <summary> /// Returns true if current actor producer pipeline already has registered provided plugin type. /// </summary> /// <param name="plugin">TBD</param> /// <returns>TBD</returns> public bool IsRegistered(IActorProducerPlugin plugin) { return(_plugins.Any(p => p.GetType() == plugin.GetType())); }