示例#1
0
        public void Subscribe(Message request)
        {
            try
            {
                var subscription = SubscriptionRequest.Parse(XElement.Parse(request.GetReaderAtBodyContents().ReadOuterXml()));

                _subscriptionManager.Add(subscription);
            }
            catch (Exception ex)
            {
                throw EpcisFault.Create(ex);
            }
        }
示例#2
0
        public virtual void Subscribe(Message request)
        {
            try
            {
                var subscription = SubscriptionRequest.Parse(XElement.Parse(request.GetReaderAtBodyContents().ReadOuterXml()));

                //TODO: store subscription
                //_subscriptionManager.Subscribe(subscription);
            }
            catch (EpcisException ex)
            {
                throw EpcisFault.Create(ex);
            }
        }