private void InitializeThis(string PresentationURL, string LocationURL) { device = UPnPDevice.CreateRootDevice(1800,1.0,"\\"); device.FriendlyName = System.Environment.MachineName; device.Manufacturer = "Carver Lab Corporation"; device.ManufacturerURL = "http://www.carverlab.com"; device.ModelName = "Oyster Mini"; device.ModelDescription = "Video Capture and Playback Device"; device.ModelNumber = "CLC_OM_10"; device.HasPresentation = true; device.PresentationURL = PresentationURL; device.LocationURL = LocationURL; device.SerialNumber = "OD_517200501"; device.DeviceURN = "urn:schemas-upnp-org:device:OysterDevice:1"; CarverLab.OysterDevice.OysterConnection OysterConnection = new CarverLab.OysterDevice.OysterConnection(); OysterConnection.External_GetConnectionVariables = new CarverLab.OysterDevice.OysterConnection.Delegate_GetConnectionVariables(OysterConnection_GetConnectionVariables); device.AddService(OysterConnection); }
private void InitializeUPNPDevice() { Logger.WriteLog("... creating UPNP device..."); device = UPnPDevice.CreateRootDevice(1800,1.0,"\\"); device.FriendlyName = System.Environment.MachineName; device.Manufacturer = "Carver Lab Corporation"; device.ManufacturerURL = "http://www.carverlab.com"; device.ModelName = "Oyster Mini"; device.ModelDescription = "Video Capture and Playback Device"; device.ModelNumber = "CLC_OM_10"; device.HasPresentation = true; device.PresentationURL = "http://OysterMini"; device.LocationURL = "http://OysterMini"; device.SerialNumber = "OD_517200501"; device.DeviceURN = "urn:schemas-upnp-org:device:OysterDevice:1"; Logger.WriteLog("... creating a new OysterConnection listeners for ConnectionService..."); CarverLab.OysterDevice.OysterConnection OysterConnection = new CarverLab.OysterDevice.OysterConnection(); OysterConnection.External_GetConnectionVariables = new CarverLab.OysterDevice.OysterConnection.Delegate_GetConnectionVariables(OysterConnection_GetConnectionVariables); device.AddService(OysterConnection); Logger.WriteLog("... Connection Service added to new device ..."); }
internal _OysterConnection(OysterConnection n) { Outer = n; S = BuildUPnPService(); }