Пример #1
0
 internal YellowPageClientViewModel(
     SettingViewModel owner,
     IYellowPageClient model)
 {
     this.owner    = owner;
     this.name     = model.Name;
     this.uri      = model.Uri;
     this.protocol = owner.peerCast.YellowPageFactories.FirstOrDefault(factory => factory.Protocol == model.Protocol);
 }
Пример #2
0
        private void AddYellowPageClientFactory(Type type)
        {
            IYellowPageClientFactory factory = null;
            var constructor = type.GetConstructor(Type.EmptyTypes);

            if (constructor != null)
            {
                factory = constructor.Invoke(null) as IYellowPageClientFactory;
            }
            else if ((constructor = type.GetConstructor(new Type[] { typeof(PeerCast) })) != null)
            {
                factory = constructor.Invoke(new object[] { peerCast }) as IYellowPageClientFactory;
            }
            if (factory != null)
            {
                peerCast.YellowPageFactories.Add(factory);
            }
        }
Пример #3
0
 internal YellowPageClientViewModel(SettingViewModel owner)
 {
     this.owner    = owner;
     this.protocol = owner.peerCast.YellowPageFactories.FirstOrDefault();
 }
 public YellowPageFactoryItem(IYellowPageClientFactory factory)
 {
     this.Factory = factory;
 }
Пример #5
0
 internal YellowPageClientViewModel(SettingViewModel owner)
 {
   this.owner = owner;
   this.protocol = owner.peerCast.YellowPageFactories.FirstOrDefault();
 }
Пример #6
0
 internal YellowPageClientViewModel(
     SettingViewModel owner,
     IYellowPageClient model)
 {
   this.owner       = owner;
   this.name        = model.Name;
   this.announceUri = model.AnnounceUri;
   this.channelsUri = model.ChannelsUri;
   this.protocol    = owner.peerCast.YellowPageFactories.FirstOrDefault(factory => factory.Protocol==model.Protocol);
 }
Пример #7
0
 public YellowPageFactoryItem(IYellowPageClientFactory factory)
 {
     this.Factory = factory;
 }
Пример #8
0
 internal YellowPageFactoryItem(IYellowPageClientFactory factory)
 {
     this.Factory = factory;
 }