Beispiel #1
0
        public async Task <IEnumerable <AubEvent> > GetEvents(int tenantId, string filter = null)
        {
            var apiContext = new ApiContext(tenantId);
            var reader     = new EntityReader <AubEvent>
            {
                Context   = apiContext,
                Filter    = filter,
                ListName  = _listFullName,
                Namespace = _listNameSpace,
                PageSize  = 200
            };
            var entities = new List <AubEvent>();

            while (await reader.ReadAsync().ConfigureAwait(false))
            {
                entities.AddRange(reader.Items);
            }
            return(entities);
        }