Ejemplo n.º 1
0
        public void SaveProperties(BatchRelationshipStore relationship, Properties properties)
        {
            var index = _jobs.Count();

            _jobs.Add(new BatchJob
            {
                Method = HttpRest.Method.Put,
                To     = string.Format("{{{0}}}/properties", relationship.Id),
                Body   = properties.ToJObject(),
                Id     = index
            });

            _jobs[(int)relationship.Id].ReloadProperties = true;

            _jobs[index].GraphObject = null;
        }
Ejemplo n.º 2
0
        public void GetProperties(BatchRelationshipStore relationship, string propertyName = null)
        {
            var index = _jobs.Count();

            var prop = string.Empty;

            if (!string.IsNullOrEmpty(propertyName))
            {
                prop = string.Concat("/", propertyName);
            }

            _jobs.Add(new BatchJob
            {
                Method = HttpRest.Method.Get,
                To     = string.Concat("/relationship/", relationship.Id, prop),
                Id     = index
            });

            _jobs[index].GraphObject = null;
        }