Esempio n. 1
0
        // ReSharper disable once InconsistentNaming
        public async Task <ActionResult> Index(string _escaped_fragment_)
        {
            if (_escaped_fragment_ == null)
            {
                return(View());
            }

            try
            {
                return(await SnapshotManager.GetSnapshotAsync(
                           _escaped_fragment_,
                           ConfigurationFacade.SpoonSnapshotStorageAccount,
                           ConfigurationFacade.SpoonSnapshotStorageContainer));
            }
            catch (HttpRequestException)
            {
                throw new HttpException(404, "The requested snapshot could not be found.");
            }
        }