public Boxes(Helper aHelper, EventServerUpnp aEventServer, ISsdpNotifyProvider aSsdpNotify, bool aDiscoverProxyDevices) { iLock = new object(); iHelper = aHelper; iEventServer = aEventServer; iListenerNotify = aSsdpNotify; iTree = new Tree(aHelper); //listen to the volkano service iDeviceListVolkano = new DeviceListUpnp(ServiceVolkano.ServiceType(), iListenerNotify); iDeviceListVolkano.EventDeviceAdded += VolkanoAddedHandler; iDeviceListVolkano.EventDeviceRemoved += VolkanoRemovedHandler; //listen to the proxy service if (aDiscoverProxyDevices) { iDeviceListProxy = new DeviceListUpnp(ServiceProxy.ServiceType(), iListenerNotify); iDeviceListProxy.EventDeviceAdded += ProxyAddedHandler; iDeviceListProxy.EventDeviceRemoved += ProxyRemovedHandler; } // Configure Service Point Manager ServicePointManager.DefaultConnectionLimit = 50; ServicePointManager.Expect100Continue = false; ServicePointManager.UseNagleAlgorithm = false; }
public ModelSenders(ISsdpNotifyProvider aListenerNotify, IEventUpnpProvider aEventServer) { iOpen = false; iEventServer = aEventServer; iPendingSenderList = new Dictionary <string, ModelSender>(); iEnabledSenderList = new List <IModelSender>(); iSenderList = new Dictionary <string, ModelSender>(); iSenders = new Senders(aListenerNotify); iLock = new object(); }
public PlaylistManagers(ISsdpNotifyProvider aListenerNotify) { // create discovery system iDeviceListPlaylistManager = new DeviceListUpnp(ServicePlaylistManager.ServiceType(), aListenerNotify); iDeviceListPlaylistManager.EventDeviceAdded += PlaylistManagerAdded; iDeviceListPlaylistManager.EventDeviceRemoved += PlaylistManagerRemoved; iLock = new object(); iJobList = new List <IJob>(); iJobReady = new ManualResetEvent(false); iPlaylistManagers = new Dictionary <Device, PlaylistManager>(); }
public House(ISsdpNotifyProvider aListenerNotify, IEventUpnpProvider aEventServer, IModelFactory aModelFactory) { iModelFactory = aModelFactory; iEventServer = aEventServer; iMutex = new Mutex(); Linn.Topology.Layer0.IStack layer0 = new Linn.Topology.Layer0.Stack(aListenerNotify); iLayer1 = new Linn.Topology.Layer1.Stack(layer0, iEventServer); iLayer1.EventGroupAdded += GroupAdded; iLayer1.EventGroupRemoved += GroupRemoved; iRoomList = new SortedList <string, Room>(); }
public Senders(ISsdpNotifyProvider aListenerNotify) { // create discovery system iDeviceListSender = new DeviceListUpnp(ServiceSender.ServiceType(), aListenerNotify); iDeviceListSender.EventDeviceAdded += SenderAdded; iDeviceListSender.EventDeviceRemoved += SenderRemoved; iMutex = new Mutex(); iJobList = new List <IJob>(); iJobReady = new ManualResetEvent(false); iDevices = new Dictionary <string, Device>(); iLock = new object(); iOpen = false; }
public Stack(ISsdpNotifyProvider aListenerNotify) { // create discovery system iDeviceListProduct = new DeviceListUpnp(ServiceProduct.ServiceType(), aListenerNotify); iDeviceListProduct.EventDeviceAdded += ProductAdded; iDeviceListProduct.EventDeviceRemoved += ProductRemoved; iDeviceListUpnp = new DeviceListUpnp(ServiceAVTransport.ServiceType(), aListenerNotify); iDeviceListUpnp.EventDeviceAdded += UpnpAdded; iDeviceListUpnp.EventDeviceRemoved += UpnpRemoved; iMutex = new Mutex(); iJobList = new List <IJob>(); iJobReady = new ManualResetEvent(false); }
public Library(ISsdpNotifyProvider aListenerNotify) { // create discovery system iDeviceListContentDirectory = new DeviceListUpnp(ServiceContentDirectory.ServiceType(), aListenerNotify); iDeviceListContentDirectory.EventDeviceAdded += ContentDirectoryAdded; iDeviceListContentDirectory.EventDeviceRemoved += ContentDirectoryRemoved; iMutex = new Mutex(); iJobList = new List <IJob>(); iJobReady = new ManualResetEvent(false); iCloudServers = new Dictionary <string, Device>(); iMediaServers = new Dictionary <Device, MediaServer>(); //iCloudServers.Add("http://89.238.133.245:26125/DeviceDescription.xml", new DeviceUpnp("http://89.238.133.245:26125/DeviceDescription.xml")); }
public ModelLibrary(ISsdpNotifyProvider aListenerNotify, IEventUpnpProvider aEventServer) { iUpdateId = 0; iMutex = new Mutex(false); iLibrary = new Linn.Topology.Library(aListenerNotify); iEventServer = aEventServer; iMediaServerByUdn = new Dictionary <string, ModelMediaServer>(); iMediaServerList = new SortedList <string, MediaServer>(); iHomeContainer = new container(); iHomeContainer.Title = "Library"; iHomeContainer.Id = kLibraryId; iHomeContainer.ChildCount = 0; iHomeContainer.Restricted = true; iHomeContainer.Searchable = true; iLibrary.EventMediaServerAdded += MediaServerAdded; iLibrary.EventMediaServerRemoved += MediaServerRemoved; }
public Boxes(Helper aHelper, EventServerUpnp aEventServer, ISsdpNotifyProvider aSsdpNotify) : this(aHelper, aEventServer, aSsdpNotify, true) { }
public DeviceListUpnp(ServiceType aType, ISsdpNotifyProvider aListener) : this(aType) { aListener.Add(this); }
public AppSupport(AppKinskyWinForm aAppKinsky, IEventUpnpProvider aEventUpnpProvider, ISsdpNotifyProvider aSsdpNotifyProvider) { iAppKinsky = aAppKinsky; iEventUpnpProvider = aEventUpnpProvider; iSsdpNotifyProvider = aSsdpNotifyProvider; }