├── src
├── AzureTableStorageCacheSample
│ ├── .bowerrc
│ ├── Views
│ │ ├── _ViewStart.cshtml
│ │ ├── _ViewImports.cshtml
│ │ ├── Home
│ │ │ ├── About.cshtml
│ │ │ ├── Contact.cshtml
│ │ │ └── Index.cshtml
│ │ └── Shared
│ │ │ ├── Error.cshtml
│ │ │ └── _Layout.cshtml
│ ├── app.config
│ ├── appsettings.json
│ ├── bower.json
│ ├── package.json
│ ├── web.config
│ ├── Program.cs
│ ├── Properties
│ │ └── launchSettings.json
│ ├── gulpfile.js
│ ├── AzureTableStorageCacheSample.xproj
│ ├── project.json
│ ├── Controllers
│ │ └── HomeController.cs
│ └── Startup.cs
└── AzureTableStorageCache
│ ├── Model
│ └── CachedItem.cs
│ ├── project.json
│ ├── Properties
│ └── AssemblyInfo.cs
│ ├── AzureTableStorageCache.xproj
│ ├── AzureTableStorageCacheExtensions.cs
│ ├── AzureTableStorageCacheHandler.cs
│ └── project.lock.json
├── global.json
├── LICENSE
├── AzureTableStorageCache.sln
├── README.md
└── .gitignore
/src/AzureTableStorageCacheSample/.bowerrc:
--------------------------------------------------------------------------------
1 | {
2 | "directory": "wwwroot/lib"
3 | }
4 |
--------------------------------------------------------------------------------
/src/AzureTableStorageCacheSample/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "_Layout";
3 | }
4 |
--------------------------------------------------------------------------------
/global.json:
--------------------------------------------------------------------------------
1 | {
2 | "projects": [ "src", "test" ],
3 | "sdk": {
4 | "version": "1.0.0-preview1-002702"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/src/AzureTableStorageCacheSample/Views/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using AzureTableStorageCacheSample
2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
3 |
--------------------------------------------------------------------------------
/src/AzureTableStorageCacheSample/app.config:
--------------------------------------------------------------------------------
1 |
Use this area to provide additional information.
8 | -------------------------------------------------------------------------------- /src/AzureTableStorageCacheSample/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/AzureTableStorageCacheSample/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "private": true, 4 | "dependencies": { 5 | "bootstrap": "3.3.6", 6 | "jquery": "2.2.0", 7 | "jquery-validation": "1.14.0", 8 | "jquery-validation-unobtrusive": "3.2.6" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/AzureTableStorageCacheSample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "asp.net", 3 | "version": "0.0.0", 4 | "private": true, 5 | "devDependencies": { 6 | "gulp": "3.8.11", 7 | "gulp-concat": "2.5.2", 8 | "gulp-cssmin": "0.1.7", 9 | "gulp-uglify": "1.2.0", 10 | "rimraf": "2.2.8" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/AzureTableStorageCacheSample/Views/Home/Contact.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Contact"; 3 | } 4 |10 | Swapping to Development environment will display more detailed information about the error that occurred. 11 |
12 |13 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 14 |
15 | -------------------------------------------------------------------------------- /src/AzureTableStorageCache/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.2.0-*", 3 | 4 | "dependencies": { 5 | "NETStandard.Library": "1.5.0-rc2-24027", 6 | "Microsoft.Extensions.Caching.Abstractions": "1.0.0-rc2-final", 7 | "Microsoft.Extensions.DependencyInjection": "1.0.0-rc2-final", 8 | "WindowsAzure.Storage": "7.0.0" 9 | }, 10 | 11 | "frameworks": { 12 | "net452": { 13 | "imports": "dnxcore50" 14 | } 15 | }, 16 | "packOptions": { 17 | "owners": [ "Tommy Parnell" ], 18 | "projectUrl": "https://github.com/tparnell8/AzureTableStorageCache.git", 19 | "repository": { 20 | "type": "git", 21 | "url": "https://github.com/tparnell8/AzureTableStorageCache.git" 22 | }, 23 | "summary": "Use azure table storage for a distributed cache in aspnet applications" 24 | } 25 | } -------------------------------------------------------------------------------- /src/AzureTableStorageCache/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("")] 10 | [assembly: AssemblyProduct("AzureTableStorageCache")] 11 | [assembly: AssemblyTrademark("")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("1976f662-ed03-4321-b4b3-e48bf750e144")] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Tommy Parnell 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /src/AzureTableStorageCache/AzureTableStorageCache.xproj: -------------------------------------------------------------------------------- 1 | 2 |