示例#1
0
        public void UpdateETags(byte[][] eTags)
        {
            Request newRequest = Request.NewGet();

            //  Copy over the options
            newRequest.SetOptions(Request.GetOptions());
            newRequest.ClearETags();
            foreach (byte[] tag in eTags)
            {
                newRequest.AddETag(tag);
            }

            newRequest.Token       = Request.Token;
            newRequest.Destination = Request.Destination;
            newRequest.CopyEventHandler(Request);
            newRequest.Reregistering  += OnReregister;
            newRequest.ObserveRelation = this;

            newRequest.Send(_endpoint);
            Request = newRequest;
        }