예제 #1
0
        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()
            });
        }