IronPigeon.Relay.Controllers.InboxController.GetInboxItemsAsync C# (CSharp) Method

GetInboxItemsAsync() private method

private GetInboxItemsAsync ( string id, bool longPoll = false ) : Task
id string
longPoll bool
return Task
        public async Task<ActionResult> GetInboxItemsAsync(string id, bool longPoll = false)
        {
            var blobs = await this.RetrieveInboxItemsAsync(id, longPoll);
            var list = new IncomingList() { Items = blobs };

            // Unit tests may not set this.Response
            if (this.Response != null)
            {
                // Help prevent clients such as WP8 from caching the result since they operate on it, then call us again
                this.Response.CacheControl = "no-cache";
            }

            return new JsonResult()
            {
                Data = list,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            };
        }