protected ServerStateProxy RegisterServerStateProxy(DeviceConnection connection) { CpService stub = connection.Device.FindServiceByServiceId(Consts.SERVICE_ID); if (stub == null) { throw new NotSupportedException("ServerStateProxy not supported by this UPnP device."); } _proxy = new ServerStateProxy(stub); return(_proxy); }
public void UnregisterService() { _proxy = null; }