private void SendPluginAccountMessages() { var pluginAccounts = AccountCollection.Select(a => new PluginAccount { PluginName = Context.PluginName, Name = a.Name, PluginProfiles = a.Profiles.Select(profile => new PluginProfile(profile.Name)). ToArray() }); Bus.Send(new PluginAccountMessageSerialized { SerializedMessage = pluginAccounts.Serialize() }); }