Example #1
0
        IEnumerable <Communication.Entities.ChannelPlugin> Communication.ICoreService.GetPluginChannels(Communication.Entities.UserIdentity userIdentity)
        {
            Core.Identity.UserIdentity coreUserIdentity = this.mapper.Map <Communication.Entities.UserIdentity, Core.Identity.UserIdentity>(userIdentity);
            IEnumerable <string>       channels         = this.GetPluginChannels(coreUserIdentity);

            foreach (string channel in channels)
            {
                yield return(new Communication.Entities.ChannelPlugin(null, channel));
            }
        }
Example #2
0
 void Communication.ICoreService.RemoveUserIdentity(Communication.Entities.UserIdentity userIdentity)
 {
     Core.Identity.UserIdentity coreUserIdentity = this.mapper.Map <Communication.Entities.UserIdentity, Core.Identity.UserIdentity>(userIdentity);
     this.observableUserIdentities.Remove(coreUserIdentity);
 }
Example #3
0
        IEnumerable <Communication.Entities.Plugin> Communication.ICoreService.GetPlugins(Communication.Entities.UserIdentity userIdentity)
        {
            Core.Identity.UserIdentity coreUserIdentity      = this.mapper.Map <Communication.Entities.UserIdentity, Core.Identity.UserIdentity>(userIdentity);
            IEnumerable <Core.Extensions.PluginInfo> plugins = this.GetPlugins(coreUserIdentity);

            return(this.mapper.Map <IEnumerable <Core.Extensions.PluginInfo>, IEnumerable <Core.Communication.Entities.Plugin> >(plugins));
        }