Ejemplo n.º 1
0
        public SearchMapResult SearchMap(GlymaSessionConfiguration configuration, Guid domainId, Guid rootMapUid, SearchConditions conditions, int pageNumber, int pageSize)
        {
            if (pageNumber == 0)
            {
                pageNumber = 1;
            }

            if (pageSize == 0)
            {
                pageSize = 5;
            }

            SearchMapResult result = null;

            // run the call against the application proxy
            NodeServiceApplicationProxy.Invoke(_serviceContext,
                                               proxy => result = proxy.SearchMap(configuration, domainId, rootMapUid, conditions, pageNumber, pageSize));

            return(result);
        }
Ejemplo n.º 2
0
        public SearchMapResult SearchMap(GlymaSessionConfiguration configuration, Guid domainId, Guid rootMapUid, SearchConditions conditions, int pageNumber, int pageSize)
        {
            if (pageNumber == 0)
            {
                pageNumber = 1;
            }

            if (pageSize == 0)
            {
                pageSize = 5;
            }

            SearchMapResult result = null;

            // execute the call against the service app
            ExecuteOnChannel("SearchMap",
                             delegate(IGlymaNodeServiceApp channel)
            {
                result = channel.SearchMap(configuration, domainId, rootMapUid, conditions, pageNumber, pageSize);
            });

            return(result);
        }