Exemple #1
0
        public async Task <_PagedResults <ContactAddress> > GetContactAddresses(int size = 10, string continuationToken = "")
        {
            var feedOptions = new FeedOptions()
            {
                MaxItemCount = size
            };

            if (!string.IsNullOrEmpty(continuationToken))
            {
                feedOptions.RequestContinuation = continuationToken;
            }
            return(await provider.CreateQuery <ContactAddress>(feedOptions).Where(x => x.Type == EntityTypes.Address.ToString()).ToPagedResults());
        }