public void SubscribeHandler(webcam.Subscribe subscribe)
        {
            // Because the subscription is forwarded directly to the simulated webcam's
            // subscription manager, we specify a type filter directly if none is provided.
            if (subscribe.Body.TypeFilter == null || subscribe.Body.TypeFilter.Length == 0)
            {
                subscribe.Body.TypeFilter = new[] { GetTypeFilterDescription <webcam.Replace>() };
            }

            this.ForwardSubscription(this.webCamPartner, subscribe.Body, subscribe.ResponsePort);
        }
        public void SubscribeHandler(sensor.Subscribe subscribe)
        {
            // We share a subscription manager with the WebCam main contract, so this ensures we that
            // we automatically filter notifcations based on the contract that the subscription came
            // through
            if (subscribe.Body.TypeFilter == null || subscribe.Body.TypeFilter.Length == 0)
            {
                subscribe.Body.TypeFilter = new[] { GetTypeFilterDescription <sensor.Replace>() };
            }

            SubscribeHelper(this._subMgrPort, subscribe, subscribe.ResponsePort);
        }