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); }
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); } }
internal YellowPageClientViewModel(SettingViewModel owner) { this.owner = owner; this.protocol = owner.peerCast.YellowPageFactories.FirstOrDefault(); }
public YellowPageFactoryItem(IYellowPageClientFactory factory) { this.Factory = factory; }
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); }
internal YellowPageFactoryItem(IYellowPageClientFactory factory) { this.Factory = factory; }