public NativeTvProxy RegisterNativeTvProxy(DeviceConnection connection) { CpService tvStub = connection.Device.FindServiceByServiceId(Consts.SLIMTV_SERVICE_ID); if (tvStub == null) { throw new NotSupportedException("NativeTvService not supported by this UPnP device."); } NativeTvProxy tvProxy = new NativeTvProxy(tvStub); return(tvProxy); }
public NativeTvProxy RegisterNativeTvProxy(DeviceConnection connection) { CpService tvStub = connection.Device.FindServiceByServiceId(Consts.SLIMTV_SERVICE_ID); if (tvStub == null) throw new NotSupportedException("NativeTvService not supported by this UPnP device."); NativeTvProxy tvProxy = new NativeTvProxy(tvStub); return tvProxy; }