示例#1
0
        public IEnumerable <BinaryPropertyContainer> GetAllBinaryProperties(PropertyHyperGraphFilter.BinaryPropertyFilter myFilter = null)
        {
            if (_binaryProperties != null)
            {
                foreach (var aBinary in _binaryProperties)
                {
                    if (myFilter != null)
                    {
                        if (myFilter(aBinary.Key, aBinary.Value))
                        {
                            yield return(new BinaryPropertyContainer {
                                PropertyID = aBinary.Key, BinaryPropery = aBinary.Value
                            });
                        }
                    }
                    else
                    {
                        yield return(new BinaryPropertyContainer {
                            PropertyID = aBinary.Key, BinaryPropery = aBinary.Value
                        });
                    }
                }
            }

            yield break;
        }
示例#2
0
        public IEnumerable <Tuple <long, Stream> > GetAllBinaryProperties(PropertyHyperGraphFilter.BinaryPropertyFilter myFilter = null)
        {
            if (_binaryProperties != null)
            {
                foreach (var aBinary in _binaryProperties)
                {
                    if (myFilter != null)
                    {
                        if (myFilter(aBinary.Key, aBinary.Value))
                        {
                            yield return(new Tuple <long, Stream>(aBinary.Key, aBinary.Value));
                        }
                    }
                    else
                    {
                        yield return(new Tuple <long, Stream>(aBinary.Key, aBinary.Value));
                    }
                }
            }

            yield break;
        }
示例#3
0
 public IEnumerable <BinaryPropertyContainer> GetAllBinaryProperties(
     PropertyHyperGraphFilter.BinaryPropertyFilter myFilter)
 {
     return(_Vertex.GetAllBinaryProperties(myFilter));
 }
示例#4
0
 public IEnumerable <BinaryPropertyContainer> GetAllBinaryProperties(PropertyHyperGraphFilter.BinaryPropertyFilter myFilter = null)
 {
     return(_ServiceToken.StreamedService.GetAllBinaryProperties(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, new ServiceVertexInstance(this)).Select(_ => new BinaryPropertyContainer {
         PropertyID = _.PropertyID, BinaryPropery = _.BinaryPropery
     }).ToList());
 }
示例#5
0
 public IEnumerable <Tuple <long, Stream> > GetAllBinaryProperties(PropertyHyperGraphFilter.BinaryPropertyFilter myFilter = null)
 {
     return(_ServiceToken.StreamedService.GetAllBinaryProperties(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, new ServiceVertexInstance(this)).ToList());
 }
示例#6
0
 public IEnumerable <Tuple <long, System.IO.Stream> > GetAllBinaryProperties(
     PropertyHyperGraphFilter.BinaryPropertyFilter myFilter)
 {
     return(_Vertex.GetAllBinaryProperties(myFilter));
 }