Quellcode durchsuchen

[CacheControl] Test project

feature/package-cache-control
Robin Thoni vor 9 Jahren
Ursprung
Commit
73eaff8583
100 geänderte Dateien mit 27817 neuen und 19 gelöschten Zeilen
  1. 28
    0
      CacheControl-test/App_Start/BundleConfig.cs
  2. 13
    0
      CacheControl-test/App_Start/FilterConfig.cs
  3. 23
    0
      CacheControl-test/App_Start/RouteConfig.cs
  4. 24
    0
      CacheControl-test/App_Start/WebApiConfig.cs
  5. 39
    0
      CacheControl-test/Areas/HelpPage/ApiDescriptionExtensions.cs
  6. 113
    0
      CacheControl-test/Areas/HelpPage/App_Start/HelpPageConfig.cs
  7. 63
    0
      CacheControl-test/Areas/HelpPage/Controllers/HelpController.cs
  8. 134
    0
      CacheControl-test/Areas/HelpPage/HelpPage.css
  9. 26
    0
      CacheControl-test/Areas/HelpPage/HelpPageAreaRegistration.cs
  10. 467
    0
      CacheControl-test/Areas/HelpPage/HelpPageConfigurationExtensions.cs
  11. 7
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs
  12. 14
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs
  13. 6
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs
  14. 15
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/EnumTypeModelDescription.cs
  15. 11
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/EnumValueDescription.cs
  16. 12
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs
  17. 9
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs
  18. 16
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/ModelDescription.cs
  19. 451
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs
  20. 18
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs
  21. 36
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/ModelNameHelper.cs
  22. 11
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/ParameterAnnotation.cs
  23. 21
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/ParameterDescription.cs
  24. 6
    0
      CacheControl-test/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs
  25. 108
    0
      CacheControl-test/Areas/HelpPage/Models/HelpPageApiModel.cs
  26. 444
    0
      CacheControl-test/Areas/HelpPage/SampleGeneration/HelpPageSampleGenerator.cs
  27. 172
    0
      CacheControl-test/Areas/HelpPage/SampleGeneration/HelpPageSampleKey.cs
  28. 41
    0
      CacheControl-test/Areas/HelpPage/SampleGeneration/ImageSample.cs
  29. 37
    0
      CacheControl-test/Areas/HelpPage/SampleGeneration/InvalidSample.cs
  30. 456
    0
      CacheControl-test/Areas/HelpPage/SampleGeneration/ObjectGenerator.cs
  31. 11
    0
      CacheControl-test/Areas/HelpPage/SampleGeneration/SampleDirection.cs
  32. 37
    0
      CacheControl-test/Areas/HelpPage/SampleGeneration/TextSample.cs
  33. 22
    0
      CacheControl-test/Areas/HelpPage/Views/Help/Api.cshtml
  34. 41
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/ApiGroup.cshtml
  35. 6
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/CollectionModelDescription.cshtml
  36. 3
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml
  37. 4
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/DictionaryModelDescription.cshtml
  38. 24
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/EnumTypeModelDescription.cshtml
  39. 67
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/HelpPageApiModel.cshtml
  40. 4
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml
  41. 13
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml
  42. 4
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/KeyValuePairModelDescription.cshtml
  43. 26
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/ModelDescriptionLink.cshtml
  44. 48
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml
  45. 30
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/Samples.cshtml
  46. 3
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml
  47. 6
    0
      CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml
  48. 38
    0
      CacheControl-test/Areas/HelpPage/Views/Help/Index.cshtml
  49. 19
    0
      CacheControl-test/Areas/HelpPage/Views/Help/ResourceModel.cshtml
  50. 12
    0
      CacheControl-test/Areas/HelpPage/Views/Shared/_Layout.cshtml
  51. 41
    0
      CacheControl-test/Areas/HelpPage/Views/Web.config
  52. 4
    0
      CacheControl-test/Areas/HelpPage/Views/_ViewStart.cshtml
  53. 161
    0
      CacheControl-test/Areas/HelpPage/XmlDocumentationProvider.cs
  54. 271
    0
      CacheControl-test/CacheControl-test.csproj
  55. 42
    0
      CacheControl-test/Content/Site.css
  56. 476
    0
      CacheControl-test/Content/bootstrap-theme.css
  57. 1
    0
      CacheControl-test/Content/bootstrap-theme.css.map
  58. 5
    0
      CacheControl-test/Content/bootstrap-theme.min.css
  59. 6584
    0
      CacheControl-test/Content/bootstrap.css
  60. 1
    0
      CacheControl-test/Content/bootstrap.css.map
  61. 5
    0
      CacheControl-test/Content/bootstrap.min.css
  62. 18
    0
      CacheControl-test/Controllers/HomeController.cs
  63. 38
    0
      CacheControl-test/Controllers/ValuesController.cs
  64. 1
    0
      CacheControl-test/Global.asax
  65. 23
    0
      CacheControl-test/Global.asax.cs
  66. BIN
      CacheControl-test/Icon.png
  67. 149
    0
      CacheControl-test/Project_Readme.html
  68. 35
    0
      CacheControl-test/Properties/AssemblyInfo.cs
  69. BIN
      CacheControl-test/Scripts/_references.js
  70. 2317
    0
      CacheControl-test/Scripts/bootstrap.js
  71. 7
    0
      CacheControl-test/Scripts/bootstrap.min.js
  72. 2670
    0
      CacheControl-test/Scripts/jquery-2.1.4.intellisense.js
  73. 9210
    0
      CacheControl-test/Scripts/jquery-2.1.4.js
  74. 5
    0
      CacheControl-test/Scripts/jquery-2.1.4.min.js
  75. 1
    0
      CacheControl-test/Scripts/jquery-2.1.4.min.map
  76. 1406
    0
      CacheControl-test/Scripts/modernizr-2.8.3.js
  77. 13
    0
      CacheControl-test/Scripts/npm.js
  78. 224
    0
      CacheControl-test/Scripts/respond.js
  79. 273
    0
      CacheControl-test/Scripts/respond.matchmedia.addListener.js
  80. 5
    0
      CacheControl-test/Scripts/respond.matchmedia.addListener.min.js
  81. 5
    0
      CacheControl-test/Scripts/respond.min.js
  82. 24
    0
      CacheControl-test/Views/Home/Index.cshtml
  83. 17
    0
      CacheControl-test/Views/Shared/Error.cshtml
  84. 41
    0
      CacheControl-test/Views/Shared/_Layout.cshtml
  85. 35
    0
      CacheControl-test/Views/Web.config
  86. 3
    0
      CacheControl-test/Views/_ViewStart.cshtml
  87. 30
    0
      CacheControl-test/Web.Debug.config
  88. 31
    0
      CacheControl-test/Web.Release.config
  89. 53
    0
      CacheControl-test/Web.config
  90. BIN
      CacheControl-test/favicon.ico
  91. BIN
      CacheControl-test/fonts/glyphicons-halflings-regular.eot
  92. 288
    0
      CacheControl-test/fonts/glyphicons-halflings-regular.svg
  93. BIN
      CacheControl-test/fonts/glyphicons-halflings-regular.ttf
  94. BIN
      CacheControl-test/fonts/glyphicons-halflings-regular.woff
  95. BIN
      CacheControl-test/fonts/glyphicons-halflings-regular.woff2
  96. 20
    0
      CacheControl-test/packages.config
  97. 3
    1
      CacheControl/Business/HttpExtensions/CacheOutputConfiguration.cs
  98. 41
    17
      CacheControl/Business/OutputCache/FileOuputCache.cs
  99. 1
    1
      CacheControl/CacheControl.nuspec
  100. 0
    0
      CacheControl/DBO/CacheDBO.cs

+ 28
- 0
CacheControl-test/App_Start/BundleConfig.cs Datei anzeigen

@@ -0,0 +1,28 @@
1
+using System.Web;
2
+using System.Web.Optimization;
3
+
4
+namespace CacheControl_test
5
+{
6
+    public class BundleConfig
7
+    {
8
+        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
9
+        public static void RegisterBundles(BundleCollection bundles)
10
+        {
11
+            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
12
+                        "~/Scripts/jquery-{version}.js"));
13
+
14
+            // Use the development version of Modernizr to develop with and learn from. Then, when you're
15
+            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
16
+            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
17
+                        "~/Scripts/modernizr-*"));
18
+
19
+            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
20
+                      "~/Scripts/bootstrap.js",
21
+                      "~/Scripts/respond.js"));
22
+
23
+            bundles.Add(new StyleBundle("~/Content/css").Include(
24
+                      "~/Content/bootstrap.css",
25
+                      "~/Content/site.css"));
26
+        }
27
+    }
28
+}

+ 13
- 0
CacheControl-test/App_Start/FilterConfig.cs Datei anzeigen

@@ -0,0 +1,13 @@
1
+using System.Web;
2
+using System.Web.Mvc;
3
+
4
+namespace CacheControl_test
5
+{
6
+    public class FilterConfig
7
+    {
8
+        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9
+        {
10
+            filters.Add(new HandleErrorAttribute());
11
+        }
12
+    }
13
+}

+ 23
- 0
CacheControl-test/App_Start/RouteConfig.cs Datei anzeigen

@@ -0,0 +1,23 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Web;
5
+using System.Web.Mvc;
6
+using System.Web.Routing;
7
+
8
+namespace CacheControl_test
9
+{
10
+    public class RouteConfig
11
+    {
12
+        public static void RegisterRoutes(RouteCollection routes)
13
+        {
14
+            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15
+
16
+            routes.MapRoute(
17
+                name: "Default",
18
+                url: "{controller}/{action}/{id}",
19
+                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
20
+            );
21
+        }
22
+    }
23
+}

+ 24
- 0
CacheControl-test/App_Start/WebApiConfig.cs Datei anzeigen

@@ -0,0 +1,24 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Web.Http;
5
+
6
+namespace CacheControl_test
7
+{
8
+    public static class WebApiConfig
9
+    {
10
+        public static void Register(HttpConfiguration config)
11
+        {
12
+            // Web API configuration and services
13
+
14
+            // Web API routes
15
+            config.MapHttpAttributeRoutes();
16
+
17
+            config.Routes.MapHttpRoute(
18
+                name: "DefaultApi",
19
+                routeTemplate: "api/{controller}/{id}",
20
+                defaults: new { id = RouteParameter.Optional }
21
+            );
22
+        }
23
+    }
24
+}

+ 39
- 0
CacheControl-test/Areas/HelpPage/ApiDescriptionExtensions.cs Datei anzeigen

@@ -0,0 +1,39 @@
1
+using System;
2
+using System.Text;
3
+using System.Web;
4
+using System.Web.Http.Description;
5
+
6
+namespace CacheControl_test.Areas.HelpPage
7
+{
8
+    public static class ApiDescriptionExtensions
9
+    {
10
+        /// <summary>
11
+        /// Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-Values-id_name" instead of "GetValues/{id}?name={name}"
12
+        /// </summary>
13
+        /// <param name="description">The <see cref="ApiDescription"/>.</param>
14
+        /// <returns>The ID as a string.</returns>
15
+        public static string GetFriendlyId(this ApiDescription description)
16
+        {
17
+            string path = description.RelativePath;
18
+            string[] urlParts = path.Split('?');
19
+            string localPath = urlParts[0];
20
+            string queryKeyString = null;
21
+            if (urlParts.Length > 1)
22
+            {
23
+                string query = urlParts[1];
24
+                string[] queryKeys = HttpUtility.ParseQueryString(query).AllKeys;
25
+                queryKeyString = String.Join("_", queryKeys);
26
+            }
27
+
28
+            StringBuilder friendlyPath = new StringBuilder();
29
+            friendlyPath.AppendFormat("{0}-{1}",
30
+                description.HttpMethod.Method,
31
+                localPath.Replace("/", "-").Replace("{", String.Empty).Replace("}", String.Empty));
32
+            if (queryKeyString != null)
33
+            {
34
+                friendlyPath.AppendFormat("_{0}", queryKeyString.Replace('.', '-'));
35
+            }
36
+            return friendlyPath.ToString();
37
+        }
38
+    }
39
+}

+ 113
- 0
CacheControl-test/Areas/HelpPage/App_Start/HelpPageConfig.cs Datei anzeigen

@@ -0,0 +1,113 @@
1
+// Uncomment the following to provide samples for PageResult<T>. Must also add the Microsoft.AspNet.WebApi.OData
2
+// package to your project.
3
+////#define Handle_PageResultOfT
4
+
5
+using System;
6
+using System.Collections;
7
+using System.Collections.Generic;
8
+using System.Diagnostics;
9
+using System.Diagnostics.CodeAnalysis;
10
+using System.Linq;
11
+using System.Net.Http.Headers;
12
+using System.Reflection;
13
+using System.Web;
14
+using System.Web.Http;
15
+#if Handle_PageResultOfT
16
+using System.Web.Http.OData;
17
+#endif
18
+
19
+namespace CacheControl_test.Areas.HelpPage
20
+{
21
+    /// <summary>
22
+    /// Use this class to customize the Help Page.
23
+    /// For example you can set a custom <see cref="System.Web.Http.Description.IDocumentationProvider"/> to supply the documentation
24
+    /// or you can provide the samples for the requests/responses.
25
+    /// </summary>
26
+    public static class HelpPageConfig
27
+    {
28
+        [SuppressMessage("Microsoft.Globalization", "CA1303:Do not pass literals as localized parameters",
29
+            MessageId = "CacheControl_test.Areas.HelpPage.TextSample.#ctor(System.String)",
30
+            Justification = "End users may choose to merge this string with existing localized resources.")]
31
+        [SuppressMessage("Microsoft.Naming", "CA2204:Literals should be spelled correctly",
32
+            MessageId = "bsonspec",
33
+            Justification = "Part of a URI.")]
34
+        public static void Register(HttpConfiguration config)
35
+        {
36
+            //// Uncomment the following to use the documentation from XML documentation file.
37
+            //config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data/XmlDocument.xml")));
38
+
39
+            //// Uncomment the following to use "sample string" as the sample for all actions that have string as the body parameter or return type.
40
+            //// Also, the string arrays will be used for IEnumerable<string>. The sample objects will be serialized into different media type 
41
+            //// formats by the available formatters.
42
+            //config.SetSampleObjects(new Dictionary<Type, object>
43
+            //{
44
+            //    {typeof(string), "sample string"},
45
+            //    {typeof(IEnumerable<string>), new string[]{"sample 1", "sample 2"}}
46
+            //});
47
+
48
+            // Extend the following to provide factories for types not handled automatically (those lacking parameterless
49
+            // constructors) or for which you prefer to use non-default property values. Line below provides a fallback
50
+            // since automatic handling will fail and GeneratePageResult handles only a single type.
51
+#if Handle_PageResultOfT
52
+            config.GetHelpPageSampleGenerator().SampleObjectFactories.Add(GeneratePageResult);
53
+#endif
54
+
55
+            // Extend the following to use a preset object directly as the sample for all actions that support a media
56
+            // type, regardless of the body parameter or return type. The lines below avoid display of binary content.
57
+            // The BsonMediaTypeFormatter (if available) is not used to serialize the TextSample object.
58
+            config.SetSampleForMediaType(
59
+                new TextSample("Binary JSON content. See http://bsonspec.org for details."),
60
+                new MediaTypeHeaderValue("application/bson"));
61
+
62
+            //// Uncomment the following to use "[0]=foo&[1]=bar" directly as the sample for all actions that support form URL encoded format
63
+            //// and have IEnumerable<string> as the body parameter or return type.
64
+            //config.SetSampleForType("[0]=foo&[1]=bar", new MediaTypeHeaderValue("application/x-www-form-urlencoded"), typeof(IEnumerable<string>));
65
+
66
+            //// Uncomment the following to use "1234" directly as the request sample for media type "text/plain" on the controller named "Values"
67
+            //// and action named "Put".
68
+            //config.SetSampleRequest("1234", new MediaTypeHeaderValue("text/plain"), "Values", "Put");
69
+
70
+            //// Uncomment the following to use the image on "../images/aspNetHome.png" directly as the response sample for media type "image/png"
71
+            //// on the controller named "Values" and action named "Get" with parameter "id".
72
+            //config.SetSampleResponse(new ImageSample("../images/aspNetHome.png"), new MediaTypeHeaderValue("image/png"), "Values", "Get", "id");
73
+
74
+            //// Uncomment the following to correct the sample request when the action expects an HttpRequestMessage with ObjectContent<string>.
75
+            //// The sample will be generated as if the controller named "Values" and action named "Get" were having string as the body parameter.
76
+            //config.SetActualRequestType(typeof(string), "Values", "Get");
77
+
78
+            //// Uncomment the following to correct the sample response when the action returns an HttpResponseMessage with ObjectContent<string>.
79
+            //// The sample will be generated as if the controller named "Values" and action named "Post" were returning a string.
80
+            //config.SetActualResponseType(typeof(string), "Values", "Post");
81
+        }
82
+
83
+#if Handle_PageResultOfT
84
+        private static object GeneratePageResult(HelpPageSampleGenerator sampleGenerator, Type type)
85
+        {
86
+            if (type.IsGenericType)
87
+            {
88
+                Type openGenericType = type.GetGenericTypeDefinition();
89
+                if (openGenericType == typeof(PageResult<>))
90
+                {
91
+                    // Get the T in PageResult<T>
92
+                    Type[] typeParameters = type.GetGenericArguments();
93
+                    Debug.Assert(typeParameters.Length == 1);
94
+
95
+                    // Create an enumeration to pass as the first parameter to the PageResult<T> constuctor
96
+                    Type itemsType = typeof(List<>).MakeGenericType(typeParameters);
97
+                    object items = sampleGenerator.GetSampleObject(itemsType);
98
+
99
+                    // Fill in the other information needed to invoke the PageResult<T> constuctor
100
+                    Type[] parameterTypes = new Type[] { itemsType, typeof(Uri), typeof(long?), };
101
+                    object[] parameters = new object[] { items, null, (long)ObjectGenerator.DefaultCollectionSize, };
102
+
103
+                    // Call PageResult(IEnumerable<T> items, Uri nextPageLink, long? count) constructor
104
+                    ConstructorInfo constructor = type.GetConstructor(parameterTypes);
105
+                    return constructor.Invoke(parameters);
106
+                }
107
+            }
108
+
109
+            return null;
110
+        }
111
+#endif
112
+    }
113
+}

+ 63
- 0
CacheControl-test/Areas/HelpPage/Controllers/HelpController.cs Datei anzeigen

@@ -0,0 +1,63 @@
1
+using System;
2
+using System.Web.Http;
3
+using System.Web.Mvc;
4
+using CacheControl_test.Areas.HelpPage.ModelDescriptions;
5
+using CacheControl_test.Areas.HelpPage.Models;
6
+
7
+namespace CacheControl_test.Areas.HelpPage.Controllers
8
+{
9
+    /// <summary>
10
+    /// The controller that will handle requests for the help page.
11
+    /// </summary>
12
+    public class HelpController : Controller
13
+    {
14
+        private const string ErrorViewName = "Error";
15
+
16
+        public HelpController()
17
+            : this(GlobalConfiguration.Configuration)
18
+        {
19
+        }
20
+
21
+        public HelpController(HttpConfiguration config)
22
+        {
23
+            Configuration = config;
24
+        }
25
+
26
+        public HttpConfiguration Configuration { get; private set; }
27
+
28
+        public ActionResult Index()
29
+        {
30
+            ViewBag.DocumentationProvider = Configuration.Services.GetDocumentationProvider();
31
+            return View(Configuration.Services.GetApiExplorer().ApiDescriptions);
32
+        }
33
+
34
+        public ActionResult Api(string apiId)
35
+        {
36
+            if (!String.IsNullOrEmpty(apiId))
37
+            {
38
+                HelpPageApiModel apiModel = Configuration.GetHelpPageApiModel(apiId);
39
+                if (apiModel != null)
40
+                {
41
+                    return View(apiModel);
42
+                }
43
+            }
44
+
45
+            return View(ErrorViewName);
46
+        }
47
+
48
+        public ActionResult ResourceModel(string modelName)
49
+        {
50
+            if (!String.IsNullOrEmpty(modelName))
51
+            {
52
+                ModelDescriptionGenerator modelDescriptionGenerator = Configuration.GetModelDescriptionGenerator();
53
+                ModelDescription modelDescription;
54
+                if (modelDescriptionGenerator.GeneratedModels.TryGetValue(modelName, out modelDescription))
55
+                {
56
+                    return View(modelDescription);
57
+                }
58
+            }
59
+
60
+            return View(ErrorViewName);
61
+        }
62
+    }
63
+}

+ 134
- 0
CacheControl-test/Areas/HelpPage/HelpPage.css Datei anzeigen

@@ -0,0 +1,134 @@
1
+.help-page h1,
2
+.help-page .h1,
3
+.help-page h2,
4
+.help-page .h2,
5
+.help-page h3,
6
+.help-page .h3,
7
+#body.help-page,
8
+.help-page-table th,
9
+.help-page-table pre,
10
+.help-page-table p {
11
+    font-family: "Segoe UI Light", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
12
+}
13
+
14
+.help-page pre.wrapped {
15
+    white-space: -moz-pre-wrap;
16
+    white-space: -pre-wrap;
17
+    white-space: -o-pre-wrap;
18
+    white-space: pre-wrap;
19
+}
20
+
21
+.help-page .warning-message-container {
22
+    margin-top: 20px;
23
+    padding: 0 10px;
24
+    color: #525252;
25
+    background: #EFDCA9; 
26
+    border: 1px solid #CCCCCC;
27
+}
28
+
29
+.help-page-table {
30
+    width: 100%;
31
+    border-collapse: collapse;
32
+    text-align: left;
33
+    margin: 0px 0px 20px 0px;
34
+    border-top: 1px solid #D4D4D4;
35
+}
36
+
37
+.help-page-table th {
38
+    text-align: left;
39
+    font-weight: bold;
40
+    border-bottom: 1px solid #D4D4D4;
41
+    padding: 5px 6px 5px 6px;
42
+}
43
+
44
+.help-page-table td {
45
+    border-bottom: 1px solid #D4D4D4;
46
+    padding: 10px 8px 10px 8px;
47
+    vertical-align: top;
48
+}
49
+
50
+.help-page-table pre,
51
+.help-page-table p {
52
+    margin: 0px;
53
+    padding: 0px;
54
+    font-family: inherit;
55
+    font-size: 100%;
56
+}
57
+
58
+.help-page-table tbody tr:hover td {
59
+    background-color: #F3F3F3;
60
+}
61
+
62
+.help-page a:hover {
63
+    background-color: transparent;
64
+}
65
+
66
+.help-page .sample-header {
67
+    border: 2px solid #D4D4D4;
68
+    background: #00497E;
69
+    color: #FFFFFF;
70
+    padding: 8px 15px;
71
+    border-bottom: none;
72
+    display: inline-block;
73
+    margin: 10px 0px 0px 0px;
74
+}
75
+
76
+.help-page .sample-content {
77
+    display: block;
78
+    border-width: 0;
79
+    padding: 15px 20px;
80
+    background: #FFFFFF;
81
+    border: 2px solid #D4D4D4;
82
+    margin: 0px 0px 10px 0px;
83
+}
84
+
85
+.help-page .api-name {
86
+    width: 40%;
87
+}
88
+
89
+.help-page .api-documentation {
90
+    width: 60%;
91
+}
92
+
93
+.help-page .parameter-name {
94
+    width: 20%;
95
+}
96
+
97
+.help-page .parameter-documentation {
98
+    width: 40%;
99
+}
100
+
101
+.help-page .parameter-type {
102
+    width: 20%;
103
+}
104
+
105
+.help-page .parameter-annotations {
106
+    width: 20%;
107
+}
108
+
109
+.help-page h1,
110
+.help-page .h1 {
111
+    font-size: 36px;
112
+    line-height: normal;
113
+}
114
+
115
+.help-page h2,
116
+.help-page .h2 {
117
+    font-size: 24px;
118
+}
119
+
120
+.help-page h3,
121
+.help-page .h3 {
122
+    font-size: 20px;
123
+}
124
+
125
+#body.help-page {
126
+    font-size: 14px;
127
+    line-height: 143%;
128
+    color: #333;
129
+}
130
+
131
+.help-page a {
132
+    color: #0000EE;
133
+    text-decoration: none;
134
+}

+ 26
- 0
CacheControl-test/Areas/HelpPage/HelpPageAreaRegistration.cs Datei anzeigen

@@ -0,0 +1,26 @@
1
+using System.Web.Http;
2
+using System.Web.Mvc;
3
+
4
+namespace CacheControl_test.Areas.HelpPage
5
+{
6
+    public class HelpPageAreaRegistration : AreaRegistration
7
+    {
8
+        public override string AreaName
9
+        {
10
+            get
11
+            {
12
+                return "HelpPage";
13
+            }
14
+        }
15
+
16
+        public override void RegisterArea(AreaRegistrationContext context)
17
+        {
18
+            context.MapRoute(
19
+                "HelpPage_Default",
20
+                "Help/{action}/{apiId}",
21
+                new { controller = "Help", action = "Index", apiId = UrlParameter.Optional });
22
+
23
+            HelpPageConfig.Register(GlobalConfiguration.Configuration);
24
+        }
25
+    }
26
+}

+ 467
- 0
CacheControl-test/Areas/HelpPage/HelpPageConfigurationExtensions.cs Datei anzeigen

@@ -0,0 +1,467 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Collections.ObjectModel;
4
+using System.ComponentModel;
5
+using System.Diagnostics;
6
+using System.Diagnostics.CodeAnalysis;
7
+using System.Globalization;
8
+using System.Linq;
9
+using System.Net.Http;
10
+using System.Net.Http.Headers;
11
+using System.Web.Http;
12
+using System.Web.Http.Controllers;
13
+using System.Web.Http.Description;
14
+using CacheControl_test.Areas.HelpPage.ModelDescriptions;
15
+using CacheControl_test.Areas.HelpPage.Models;
16
+
17
+namespace CacheControl_test.Areas.HelpPage
18
+{
19
+    public static class HelpPageConfigurationExtensions
20
+    {
21
+        private const string ApiModelPrefix = "MS_HelpPageApiModel_";
22
+
23
+        /// <summary>
24
+        /// Sets the documentation provider for help page.
25
+        /// </summary>
26
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
27
+        /// <param name="documentationProvider">The documentation provider.</param>
28
+        public static void SetDocumentationProvider(this HttpConfiguration config, IDocumentationProvider documentationProvider)
29
+        {
30
+            config.Services.Replace(typeof(IDocumentationProvider), documentationProvider);
31
+        }
32
+
33
+        /// <summary>
34
+        /// Sets the objects that will be used by the formatters to produce sample requests/responses.
35
+        /// </summary>
36
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
37
+        /// <param name="sampleObjects">The sample objects.</param>
38
+        public static void SetSampleObjects(this HttpConfiguration config, IDictionary<Type, object> sampleObjects)
39
+        {
40
+            config.GetHelpPageSampleGenerator().SampleObjects = sampleObjects;
41
+        }
42
+
43
+        /// <summary>
44
+        /// Sets the sample request directly for the specified media type and action.
45
+        /// </summary>
46
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
47
+        /// <param name="sample">The sample request.</param>
48
+        /// <param name="mediaType">The media type.</param>
49
+        /// <param name="controllerName">Name of the controller.</param>
50
+        /// <param name="actionName">Name of the action.</param>
51
+        public static void SetSampleRequest(this HttpConfiguration config, object sample, MediaTypeHeaderValue mediaType, string controllerName, string actionName)
52
+        {
53
+            config.GetHelpPageSampleGenerator().ActionSamples.Add(new HelpPageSampleKey(mediaType, SampleDirection.Request, controllerName, actionName, new[] { "*" }), sample);
54
+        }
55
+
56
+        /// <summary>
57
+        /// Sets the sample request directly for the specified media type and action with parameters.
58
+        /// </summary>
59
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
60
+        /// <param name="sample">The sample request.</param>
61
+        /// <param name="mediaType">The media type.</param>
62
+        /// <param name="controllerName">Name of the controller.</param>
63
+        /// <param name="actionName">Name of the action.</param>
64
+        /// <param name="parameterNames">The parameter names.</param>
65
+        public static void SetSampleRequest(this HttpConfiguration config, object sample, MediaTypeHeaderValue mediaType, string controllerName, string actionName, params string[] parameterNames)
66
+        {
67
+            config.GetHelpPageSampleGenerator().ActionSamples.Add(new HelpPageSampleKey(mediaType, SampleDirection.Request, controllerName, actionName, parameterNames), sample);
68
+        }
69
+
70
+        /// <summary>
71
+        /// Sets the sample request directly for the specified media type of the action.
72
+        /// </summary>
73
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
74
+        /// <param name="sample">The sample response.</param>
75
+        /// <param name="mediaType">The media type.</param>
76
+        /// <param name="controllerName">Name of the controller.</param>
77
+        /// <param name="actionName">Name of the action.</param>
78
+        public static void SetSampleResponse(this HttpConfiguration config, object sample, MediaTypeHeaderValue mediaType, string controllerName, string actionName)
79
+        {
80
+            config.GetHelpPageSampleGenerator().ActionSamples.Add(new HelpPageSampleKey(mediaType, SampleDirection.Response, controllerName, actionName, new[] { "*" }), sample);
81
+        }
82
+
83
+        /// <summary>
84
+        /// Sets the sample response directly for the specified media type of the action with specific parameters.
85
+        /// </summary>
86
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
87
+        /// <param name="sample">The sample response.</param>
88
+        /// <param name="mediaType">The media type.</param>
89
+        /// <param name="controllerName">Name of the controller.</param>
90
+        /// <param name="actionName">Name of the action.</param>
91
+        /// <param name="parameterNames">The parameter names.</param>
92
+        public static void SetSampleResponse(this HttpConfiguration config, object sample, MediaTypeHeaderValue mediaType, string controllerName, string actionName, params string[] parameterNames)
93
+        {
94
+            config.GetHelpPageSampleGenerator().ActionSamples.Add(new HelpPageSampleKey(mediaType, SampleDirection.Response, controllerName, actionName, parameterNames), sample);
95
+        }
96
+
97
+        /// <summary>
98
+        /// Sets the sample directly for all actions with the specified media type.
99
+        /// </summary>
100
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
101
+        /// <param name="sample">The sample.</param>
102
+        /// <param name="mediaType">The media type.</param>
103
+        public static void SetSampleForMediaType(this HttpConfiguration config, object sample, MediaTypeHeaderValue mediaType)
104
+        {
105
+            config.GetHelpPageSampleGenerator().ActionSamples.Add(new HelpPageSampleKey(mediaType), sample);
106
+        }
107
+
108
+        /// <summary>
109
+        /// Sets the sample directly for all actions with the specified type and media type.
110
+        /// </summary>
111
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
112
+        /// <param name="sample">The sample.</param>
113
+        /// <param name="mediaType">The media type.</param>
114
+        /// <param name="type">The parameter type or return type of an action.</param>
115
+        public static void SetSampleForType(this HttpConfiguration config, object sample, MediaTypeHeaderValue mediaType, Type type)
116
+        {
117
+            config.GetHelpPageSampleGenerator().ActionSamples.Add(new HelpPageSampleKey(mediaType, type), sample);
118
+        }
119
+
120
+        /// <summary>
121
+        /// Specifies the actual type of <see cref="System.Net.Http.ObjectContent{T}"/> passed to the <see cref="System.Net.Http.HttpRequestMessage"/> in an action.
122
+        /// The help page will use this information to produce more accurate request samples.
123
+        /// </summary>
124
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
125
+        /// <param name="type">The type.</param>
126
+        /// <param name="controllerName">Name of the controller.</param>
127
+        /// <param name="actionName">Name of the action.</param>
128
+        public static void SetActualRequestType(this HttpConfiguration config, Type type, string controllerName, string actionName)
129
+        {
130
+            config.GetHelpPageSampleGenerator().ActualHttpMessageTypes.Add(new HelpPageSampleKey(SampleDirection.Request, controllerName, actionName, new[] { "*" }), type);
131
+        }
132
+
133
+        /// <summary>
134
+        /// Specifies the actual type of <see cref="System.Net.Http.ObjectContent{T}"/> passed to the <see cref="System.Net.Http.HttpRequestMessage"/> in an action.
135
+        /// The help page will use this information to produce more accurate request samples.
136
+        /// </summary>
137
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
138
+        /// <param name="type">The type.</param>
139
+        /// <param name="controllerName">Name of the controller.</param>
140
+        /// <param name="actionName">Name of the action.</param>
141
+        /// <param name="parameterNames">The parameter names.</param>
142
+        public static void SetActualRequestType(this HttpConfiguration config, Type type, string controllerName, string actionName, params string[] parameterNames)
143
+        {
144
+            config.GetHelpPageSampleGenerator().ActualHttpMessageTypes.Add(new HelpPageSampleKey(SampleDirection.Request, controllerName, actionName, parameterNames), type);
145
+        }
146
+
147
+        /// <summary>
148
+        /// Specifies the actual type of <see cref="System.Net.Http.ObjectContent{T}"/> returned as part of the <see cref="System.Net.Http.HttpRequestMessage"/> in an action.
149
+        /// The help page will use this information to produce more accurate response samples.
150
+        /// </summary>
151
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
152
+        /// <param name="type">The type.</param>
153
+        /// <param name="controllerName">Name of the controller.</param>
154
+        /// <param name="actionName">Name of the action.</param>
155
+        public static void SetActualResponseType(this HttpConfiguration config, Type type, string controllerName, string actionName)
156
+        {
157
+            config.GetHelpPageSampleGenerator().ActualHttpMessageTypes.Add(new HelpPageSampleKey(SampleDirection.Response, controllerName, actionName, new[] { "*" }), type);
158
+        }
159
+
160
+        /// <summary>
161
+        /// Specifies the actual type of <see cref="System.Net.Http.ObjectContent{T}"/> returned as part of the <see cref="System.Net.Http.HttpRequestMessage"/> in an action.
162
+        /// The help page will use this information to produce more accurate response samples.
163
+        /// </summary>
164
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
165
+        /// <param name="type">The type.</param>
166
+        /// <param name="controllerName">Name of the controller.</param>
167
+        /// <param name="actionName">Name of the action.</param>
168
+        /// <param name="parameterNames">The parameter names.</param>
169
+        public static void SetActualResponseType(this HttpConfiguration config, Type type, string controllerName, string actionName, params string[] parameterNames)
170
+        {
171
+            config.GetHelpPageSampleGenerator().ActualHttpMessageTypes.Add(new HelpPageSampleKey(SampleDirection.Response, controllerName, actionName, parameterNames), type);
172
+        }
173
+
174
+        /// <summary>
175
+        /// Gets the help page sample generator.
176
+        /// </summary>
177
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
178
+        /// <returns>The help page sample generator.</returns>
179
+        public static HelpPageSampleGenerator GetHelpPageSampleGenerator(this HttpConfiguration config)
180
+        {
181
+            return (HelpPageSampleGenerator)config.Properties.GetOrAdd(
182
+                typeof(HelpPageSampleGenerator),
183
+                k => new HelpPageSampleGenerator());
184
+        }
185
+
186
+        /// <summary>
187
+        /// Sets the help page sample generator.
188
+        /// </summary>
189
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
190
+        /// <param name="sampleGenerator">The help page sample generator.</param>
191
+        public static void SetHelpPageSampleGenerator(this HttpConfiguration config, HelpPageSampleGenerator sampleGenerator)
192
+        {
193
+            config.Properties.AddOrUpdate(
194
+                typeof(HelpPageSampleGenerator),
195
+                k => sampleGenerator,
196
+                (k, o) => sampleGenerator);
197
+        }
198
+
199
+        /// <summary>
200
+        /// Gets the model description generator.
201
+        /// </summary>
202
+        /// <param name="config">The configuration.</param>
203
+        /// <returns>The <see cref="ModelDescriptionGenerator"/></returns>
204
+        public static ModelDescriptionGenerator GetModelDescriptionGenerator(this HttpConfiguration config)
205
+        {
206
+            return (ModelDescriptionGenerator)config.Properties.GetOrAdd(
207
+                typeof(ModelDescriptionGenerator),
208
+                k => InitializeModelDescriptionGenerator(config));
209
+        }
210
+
211
+        /// <summary>
212
+        /// Gets the model that represents an API displayed on the help page. The model is initialized on the first call and cached for subsequent calls.
213
+        /// </summary>
214
+        /// <param name="config">The <see cref="HttpConfiguration"/>.</param>
215
+        /// <param name="apiDescriptionId">The <see cref="ApiDescription"/> ID.</param>
216
+        /// <returns>
217
+        /// An <see cref="HelpPageApiModel"/>
218
+        /// </returns>
219
+        public static HelpPageApiModel GetHelpPageApiModel(this HttpConfiguration config, string apiDescriptionId)
220
+        {
221
+            object model;
222
+            string modelId = ApiModelPrefix + apiDescriptionId;
223
+            if (!config.Properties.TryGetValue(modelId, out model))
224
+            {
225
+                Collection<ApiDescription> apiDescriptions = config.Services.GetApiExplorer().ApiDescriptions;
226
+                ApiDescription apiDescription = apiDescriptions.FirstOrDefault(api => String.Equals(api.GetFriendlyId(), apiDescriptionId, StringComparison.OrdinalIgnoreCase));
227
+                if (apiDescription != null)
228
+                {
229
+                    model = GenerateApiModel(apiDescription, config);
230
+                    config.Properties.TryAdd(modelId, model);
231
+                }
232
+            }
233
+
234
+            return (HelpPageApiModel)model;
235
+        }
236
+
237
+        private static HelpPageApiModel GenerateApiModel(ApiDescription apiDescription, HttpConfiguration config)
238
+        {
239
+            HelpPageApiModel apiModel = new HelpPageApiModel()
240
+            {
241
+                ApiDescription = apiDescription,
242
+            };
243
+
244
+            ModelDescriptionGenerator modelGenerator = config.GetModelDescriptionGenerator();
245
+            HelpPageSampleGenerator sampleGenerator = config.GetHelpPageSampleGenerator();
246
+            GenerateUriParameters(apiModel, modelGenerator);
247
+            GenerateRequestModelDescription(apiModel, modelGenerator, sampleGenerator);
248
+            GenerateResourceDescription(apiModel, modelGenerator);
249
+            GenerateSamples(apiModel, sampleGenerator);
250
+
251
+            return apiModel;
252
+        }
253
+
254
+        private static void GenerateUriParameters(HelpPageApiModel apiModel, ModelDescriptionGenerator modelGenerator)
255
+        {
256
+            ApiDescription apiDescription = apiModel.ApiDescription;
257
+            foreach (ApiParameterDescription apiParameter in apiDescription.ParameterDescriptions)
258
+            {
259
+                if (apiParameter.Source == ApiParameterSource.FromUri)
260
+                {
261
+                    HttpParameterDescriptor parameterDescriptor = apiParameter.ParameterDescriptor;
262
+                    Type parameterType = null;
263
+                    ModelDescription typeDescription = null;
264
+                    ComplexTypeModelDescription complexTypeDescription = null;
265
+                    if (parameterDescriptor != null)
266
+                    {
267
+                        parameterType = parameterDescriptor.ParameterType;
268
+                        typeDescription = modelGenerator.GetOrCreateModelDescription(parameterType);
269
+                        complexTypeDescription = typeDescription as ComplexTypeModelDescription;
270
+                    }
271
+
272
+                    // Example:
273
+                    // [TypeConverter(typeof(PointConverter))]
274
+                    // public class Point
275
+                    // {
276
+                    //     public Point(int x, int y)
277
+                    //     {
278
+                    //         X = x;
279
+                    //         Y = y;
280
+                    //     }
281
+                    //     public int X { get; set; }
282
+                    //     public int Y { get; set; }
283
+                    // }
284
+                    // Class Point is bindable with a TypeConverter, so Point will be added to UriParameters collection.
285
+                    // 
286
+                    // public class Point
287
+                    // {
288
+                    //     public int X { get; set; }
289
+                    //     public int Y { get; set; }
290
+                    // }
291
+                    // Regular complex class Point will have properties X and Y added to UriParameters collection.
292
+                    if (complexTypeDescription != null
293
+                        && !IsBindableWithTypeConverter(parameterType))
294
+                    {
295
+                        foreach (ParameterDescription uriParameter in complexTypeDescription.Properties)
296
+                        {
297
+                            apiModel.UriParameters.Add(uriParameter);
298
+                        }
299
+                    }
300
+                    else if (parameterDescriptor != null)
301
+                    {
302
+                        ParameterDescription uriParameter =
303
+                            AddParameterDescription(apiModel, apiParameter, typeDescription);
304
+
305
+                        if (!parameterDescriptor.IsOptional)
306
+                        {
307
+                            uriParameter.Annotations.Add(new ParameterAnnotation() { Documentation = "Required" });
308
+                        }
309
+
310
+                        object defaultValue = parameterDescriptor.DefaultValue;
311
+                        if (defaultValue != null)
312
+                        {
313
+                            uriParameter.Annotations.Add(new ParameterAnnotation() { Documentation = "Default value is " + Convert.ToString(defaultValue, CultureInfo.InvariantCulture) });
314
+                        }
315
+                    }
316
+                    else
317
+                    {
318
+                        Debug.Assert(parameterDescriptor == null);
319
+
320
+                        // If parameterDescriptor is null, this is an undeclared route parameter which only occurs
321
+                        // when source is FromUri. Ignored in request model and among resource parameters but listed
322
+                        // as a simple string here.
323
+                        ModelDescription modelDescription = modelGenerator.GetOrCreateModelDescription(typeof(string));
324
+                        AddParameterDescription(apiModel, apiParameter, modelDescription);
325
+                    }
326
+                }
327
+            }
328
+        }
329
+
330
+        private static bool IsBindableWithTypeConverter(Type parameterType)
331
+        {
332
+            if (parameterType == null)
333
+            {
334
+                return false;
335
+            }
336
+
337
+            return TypeDescriptor.GetConverter(parameterType).CanConvertFrom(typeof(string));
338
+        }
339
+
340
+        private static ParameterDescription AddParameterDescription(HelpPageApiModel apiModel,
341
+            ApiParameterDescription apiParameter, ModelDescription typeDescription)
342
+        {
343
+            ParameterDescription parameterDescription = new ParameterDescription
344
+            {
345
+                Name = apiParameter.Name,
346
+                Documentation = apiParameter.Documentation,
347
+                TypeDescription = typeDescription,
348
+            };
349
+
350
+            apiModel.UriParameters.Add(parameterDescription);
351
+            return parameterDescription;
352
+        }
353
+
354
+        private static void GenerateRequestModelDescription(HelpPageApiModel apiModel, ModelDescriptionGenerator modelGenerator, HelpPageSampleGenerator sampleGenerator)
355
+        {
356
+            ApiDescription apiDescription = apiModel.ApiDescription;
357
+            foreach (ApiParameterDescription apiParameter in apiDescription.ParameterDescriptions)
358
+            {
359
+                if (apiParameter.Source == ApiParameterSource.FromBody)
360
+                {
361
+                    Type parameterType = apiParameter.ParameterDescriptor.ParameterType;
362
+                    apiModel.RequestModelDescription = modelGenerator.GetOrCreateModelDescription(parameterType);
363
+                    apiModel.RequestDocumentation = apiParameter.Documentation;
364
+                }
365
+                else if (apiParameter.ParameterDescriptor != null &&
366
+                    apiParameter.ParameterDescriptor.ParameterType == typeof(HttpRequestMessage))
367
+                {
368
+                    Type parameterType = sampleGenerator.ResolveHttpRequestMessageType(apiDescription);
369
+
370
+                    if (parameterType != null)
371
+                    {
372
+                        apiModel.RequestModelDescription = modelGenerator.GetOrCreateModelDescription(parameterType);
373
+                    }
374
+                }
375
+            }
376
+        }
377
+
378
+        private static void GenerateResourceDescription(HelpPageApiModel apiModel, ModelDescriptionGenerator modelGenerator)
379
+        {
380
+            ResponseDescription response = apiModel.ApiDescription.ResponseDescription;
381
+            Type responseType = response.ResponseType ?? response.DeclaredType;
382
+            if (responseType != null && responseType != typeof(void))
383
+            {
384
+                apiModel.ResourceDescription = modelGenerator.GetOrCreateModelDescription(responseType);
385
+            }
386
+        }
387
+
388
+        [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "The exception is recorded as ErrorMessages.")]
389
+        private static void GenerateSamples(HelpPageApiModel apiModel, HelpPageSampleGenerator sampleGenerator)
390
+        {
391
+            try
392
+            {
393
+                foreach (var item in sampleGenerator.GetSampleRequests(apiModel.ApiDescription))
394
+                {
395
+                    apiModel.SampleRequests.Add(item.Key, item.Value);
396
+                    LogInvalidSampleAsError(apiModel, item.Value);
397
+                }
398
+
399
+                foreach (var item in sampleGenerator.GetSampleResponses(apiModel.ApiDescription))
400
+                {
401
+                    apiModel.SampleResponses.Add(item.Key, item.Value);
402
+                    LogInvalidSampleAsError(apiModel, item.Value);
403
+                }
404
+            }
405
+            catch (Exception e)
406
+            {
407
+                apiModel.ErrorMessages.Add(String.Format(CultureInfo.CurrentCulture,
408
+                    "An exception has occurred while generating the sample. Exception message: {0}",
409
+                    HelpPageSampleGenerator.UnwrapException(e).Message));
410
+            }
411
+        }
412
+
413
+        private static bool TryGetResourceParameter(ApiDescription apiDescription, HttpConfiguration config, out ApiParameterDescription parameterDescription, out Type resourceType)
414
+        {
415
+            parameterDescription = apiDescription.ParameterDescriptions.FirstOrDefault(
416
+                p => p.Source == ApiParameterSource.FromBody ||
417
+                    (p.ParameterDescriptor != null && p.ParameterDescriptor.ParameterType == typeof(HttpRequestMessage)));
418
+
419
+            if (parameterDescription == null)
420
+            {
421
+                resourceType = null;
422
+                return false;
423
+            }
424
+
425
+            resourceType = parameterDescription.ParameterDescriptor.ParameterType;
426
+
427
+            if (resourceType == typeof(HttpRequestMessage))
428
+            {
429
+                HelpPageSampleGenerator sampleGenerator = config.GetHelpPageSampleGenerator();
430
+                resourceType = sampleGenerator.ResolveHttpRequestMessageType(apiDescription);
431
+            }
432
+
433
+            if (resourceType == null)
434
+            {
435
+                parameterDescription = null;
436
+                return false;
437
+            }
438
+
439
+            return true;
440
+        }
441
+
442
+        private static ModelDescriptionGenerator InitializeModelDescriptionGenerator(HttpConfiguration config)
443
+        {
444
+            ModelDescriptionGenerator modelGenerator = new ModelDescriptionGenerator(config);
445
+            Collection<ApiDescription> apis = config.Services.GetApiExplorer().ApiDescriptions;
446
+            foreach (ApiDescription api in apis)
447
+            {
448
+                ApiParameterDescription parameterDescription;
449
+                Type parameterType;
450
+                if (TryGetResourceParameter(api, config, out parameterDescription, out parameterType))
451
+                {
452
+                    modelGenerator.GetOrCreateModelDescription(parameterType);
453
+                }
454
+            }
455
+            return modelGenerator;
456
+        }
457
+
458
+        private static void LogInvalidSampleAsError(HelpPageApiModel apiModel, object sample)
459
+        {
460
+            InvalidSample invalidSample = sample as InvalidSample;
461
+            if (invalidSample != null)
462
+            {
463
+                apiModel.ErrorMessages.Add(invalidSample.ErrorMessage);
464
+            }
465
+        }
466
+    }
467
+}

+ 7
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/CollectionModelDescription.cs Datei anzeigen

@@ -0,0 +1,7 @@
1
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
2
+{
3
+    public class CollectionModelDescription : ModelDescription
4
+    {
5
+        public ModelDescription ElementDescription { get; set; }
6
+    }
7
+}

+ 14
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs Datei anzeigen

@@ -0,0 +1,14 @@
1
+using System.Collections.ObjectModel;
2
+
3
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
4
+{
5
+    public class ComplexTypeModelDescription : ModelDescription
6
+    {
7
+        public ComplexTypeModelDescription()
8
+        {
9
+            Properties = new Collection<ParameterDescription>();
10
+        }
11
+
12
+        public Collection<ParameterDescription> Properties { get; private set; }
13
+    }
14
+}

+ 6
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/DictionaryModelDescription.cs Datei anzeigen

@@ -0,0 +1,6 @@
1
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
2
+{
3
+    public class DictionaryModelDescription : KeyValuePairModelDescription
4
+    {
5
+    }
6
+}

+ 15
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/EnumTypeModelDescription.cs Datei anzeigen

@@ -0,0 +1,15 @@
1
+using System.Collections.Generic;
2
+using System.Collections.ObjectModel;
3
+
4
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
5
+{
6
+    public class EnumTypeModelDescription : ModelDescription
7
+    {
8
+        public EnumTypeModelDescription()
9
+        {
10
+            Values = new Collection<EnumValueDescription>();
11
+        }
12
+
13
+        public Collection<EnumValueDescription> Values { get; private set; }
14
+    }
15
+}

+ 11
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/EnumValueDescription.cs Datei anzeigen

@@ -0,0 +1,11 @@
1
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
2
+{
3
+    public class EnumValueDescription
4
+    {
5
+        public string Documentation { get; set; }
6
+
7
+        public string Name { get; set; }
8
+
9
+        public string Value { get; set; }
10
+    }
11
+}

+ 12
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/IModelDocumentationProvider.cs Datei anzeigen

@@ -0,0 +1,12 @@
1
+using System;
2
+using System.Reflection;
3
+
4
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
5
+{
6
+    public interface IModelDocumentationProvider
7
+    {
8
+        string GetDocumentation(MemberInfo member);
9
+
10
+        string GetDocumentation(Type type);
11
+    }
12
+}

+ 9
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs Datei anzeigen

@@ -0,0 +1,9 @@
1
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
2
+{
3
+    public class KeyValuePairModelDescription : ModelDescription
4
+    {
5
+        public ModelDescription KeyModelDescription { get; set; }
6
+
7
+        public ModelDescription ValueModelDescription { get; set; }
8
+    }
9
+}

+ 16
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/ModelDescription.cs Datei anzeigen

@@ -0,0 +1,16 @@
1
+using System;
2
+
3
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
4
+{
5
+    /// <summary>
6
+    /// Describes a type model.
7
+    /// </summary>
8
+    public abstract class ModelDescription
9
+    {
10
+        public string Documentation { get; set; }
11
+
12
+        public Type ModelType { get; set; }
13
+
14
+        public string Name { get; set; }
15
+    }
16
+}

+ 451
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs Datei anzeigen

@@ -0,0 +1,451 @@
1
+using System;
2
+using System.Collections;
3
+using System.Collections.Generic;
4
+using System.Collections.Specialized;
5
+using System.ComponentModel.DataAnnotations;
6
+using System.Globalization;
7
+using System.Reflection;
8
+using System.Runtime.Serialization;
9
+using System.Web.Http;
10
+using System.Web.Http.Description;
11
+using System.Xml.Serialization;
12
+using Newtonsoft.Json;
13
+
14
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
15
+{
16
+    /// <summary>
17
+    /// Generates model descriptions for given types.
18
+    /// </summary>
19
+    public class ModelDescriptionGenerator
20
+    {
21
+        // Modify this to support more data annotation attributes.
22
+        private readonly IDictionary<Type, Func<object, string>> AnnotationTextGenerator = new Dictionary<Type, Func<object, string>>
23
+        {
24
+            { typeof(RequiredAttribute), a => "Required" },
25
+            { typeof(RangeAttribute), a =>
26
+                {
27
+                    RangeAttribute range = (RangeAttribute)a;
28
+                    return String.Format(CultureInfo.CurrentCulture, "Range: inclusive between {0} and {1}", range.Minimum, range.Maximum);
29
+                }
30
+            },
31
+            { typeof(MaxLengthAttribute), a =>
32
+                {
33
+                    MaxLengthAttribute maxLength = (MaxLengthAttribute)a;
34
+                    return String.Format(CultureInfo.CurrentCulture, "Max length: {0}", maxLength.Length);
35
+                }
36
+            },
37
+            { typeof(MinLengthAttribute), a =>
38
+                {
39
+                    MinLengthAttribute minLength = (MinLengthAttribute)a;
40
+                    return String.Format(CultureInfo.CurrentCulture, "Min length: {0}", minLength.Length);
41
+                }
42
+            },
43
+            { typeof(StringLengthAttribute), a =>
44
+                {
45
+                    StringLengthAttribute strLength = (StringLengthAttribute)a;
46
+                    return String.Format(CultureInfo.CurrentCulture, "String length: inclusive between {0} and {1}", strLength.MinimumLength, strLength.MaximumLength);
47
+                }
48
+            },
49
+            { typeof(DataTypeAttribute), a =>
50
+                {
51
+                    DataTypeAttribute dataType = (DataTypeAttribute)a;
52
+                    return String.Format(CultureInfo.CurrentCulture, "Data type: {0}", dataType.CustomDataType ?? dataType.DataType.ToString());
53
+                }
54
+            },
55
+            { typeof(RegularExpressionAttribute), a =>
56
+                {
57
+                    RegularExpressionAttribute regularExpression = (RegularExpressionAttribute)a;
58
+                    return String.Format(CultureInfo.CurrentCulture, "Matching regular expression pattern: {0}", regularExpression.Pattern);
59
+                }
60
+            },
61
+        };
62
+
63
+        // Modify this to add more default documentations.
64
+        private readonly IDictionary<Type, string> DefaultTypeDocumentation = new Dictionary<Type, string>
65
+        {
66
+            { typeof(Int16), "integer" },
67
+            { typeof(Int32), "integer" },
68
+            { typeof(Int64), "integer" },
69
+            { typeof(UInt16), "unsigned integer" },
70
+            { typeof(UInt32), "unsigned integer" },
71
+            { typeof(UInt64), "unsigned integer" },
72
+            { typeof(Byte), "byte" },
73
+            { typeof(Char), "character" },
74
+            { typeof(SByte), "signed byte" },
75
+            { typeof(Uri), "URI" },
76
+            { typeof(Single), "decimal number" },
77
+            { typeof(Double), "decimal number" },
78
+            { typeof(Decimal), "decimal number" },
79
+            { typeof(String), "string" },
80
+            { typeof(Guid), "globally unique identifier" },
81
+            { typeof(TimeSpan), "time interval" },
82
+            { typeof(DateTime), "date" },
83
+            { typeof(DateTimeOffset), "date" },
84
+            { typeof(Boolean), "boolean" },
85
+        };
86
+
87
+        private Lazy<IModelDocumentationProvider> _documentationProvider;
88
+
89
+        public ModelDescriptionGenerator(HttpConfiguration config)
90
+        {
91
+            if (config == null)
92
+            {
93
+                throw new ArgumentNullException("config");
94
+            }
95
+
96
+            _documentationProvider = new Lazy<IModelDocumentationProvider>(() => config.Services.GetDocumentationProvider() as IModelDocumentationProvider);
97
+            GeneratedModels = new Dictionary<string, ModelDescription>(StringComparer.OrdinalIgnoreCase);
98
+        }
99
+
100
+        public Dictionary<string, ModelDescription> GeneratedModels { get; private set; }
101
+
102
+        private IModelDocumentationProvider DocumentationProvider
103
+        {
104
+            get
105
+            {
106
+                return _documentationProvider.Value;
107
+            }
108
+        }
109
+
110
+        public ModelDescription GetOrCreateModelDescription(Type modelType)
111
+        {
112
+            if (modelType == null)
113
+            {
114
+                throw new ArgumentNullException("modelType");
115
+            }
116
+
117
+            Type underlyingType = Nullable.GetUnderlyingType(modelType);
118
+            if (underlyingType != null)
119
+            {
120
+                modelType = underlyingType;
121
+            }
122
+
123
+            ModelDescription modelDescription;
124
+            string modelName = ModelNameHelper.GetModelName(modelType);
125
+            if (GeneratedModels.TryGetValue(modelName, out modelDescription))
126
+            {
127
+                if (modelType != modelDescription.ModelType)
128
+                {
129
+                    throw new InvalidOperationException(
130
+                        String.Format(
131
+                            CultureInfo.CurrentCulture,
132
+                            "A model description could not be created. Duplicate model name '{0}' was found for types '{1}' and '{2}'. " +
133
+                            "Use the [ModelName] attribute to change the model name for at least one of the types so that it has a unique name.",
134
+                            modelName,
135
+                            modelDescription.ModelType.FullName,
136
+                            modelType.FullName));
137
+                }
138
+
139
+                return modelDescription;
140
+            }
141
+
142
+            if (DefaultTypeDocumentation.ContainsKey(modelType))
143
+            {
144
+                return GenerateSimpleTypeModelDescription(modelType);
145
+            }
146
+
147
+            if (modelType.IsEnum)
148
+            {
149
+                return GenerateEnumTypeModelDescription(modelType);
150
+            }
151
+
152
+            if (modelType.IsGenericType)
153
+            {
154
+                Type[] genericArguments = modelType.GetGenericArguments();
155
+
156
+                if (genericArguments.Length == 1)
157
+                {
158
+                    Type enumerableType = typeof(IEnumerable<>).MakeGenericType(genericArguments);
159
+                    if (enumerableType.IsAssignableFrom(modelType))
160
+                    {
161
+                        return GenerateCollectionModelDescription(modelType, genericArguments[0]);
162
+                    }
163
+                }
164
+                if (genericArguments.Length == 2)
165
+                {
166
+                    Type dictionaryType = typeof(IDictionary<,>).MakeGenericType(genericArguments);
167
+                    if (dictionaryType.IsAssignableFrom(modelType))
168
+                    {
169
+                        return GenerateDictionaryModelDescription(modelType, genericArguments[0], genericArguments[1]);
170
+                    }
171
+
172
+                    Type keyValuePairType = typeof(KeyValuePair<,>).MakeGenericType(genericArguments);
173
+                    if (keyValuePairType.IsAssignableFrom(modelType))
174
+                    {
175
+                        return GenerateKeyValuePairModelDescription(modelType, genericArguments[0], genericArguments[1]);
176
+                    }
177
+                }
178
+            }
179
+
180
+            if (modelType.IsArray)
181
+            {
182
+                Type elementType = modelType.GetElementType();
183
+                return GenerateCollectionModelDescription(modelType, elementType);
184
+            }
185
+
186
+            if (modelType == typeof(NameValueCollection))
187
+            {
188
+                return GenerateDictionaryModelDescription(modelType, typeof(string), typeof(string));
189
+            }
190
+
191
+            if (typeof(IDictionary).IsAssignableFrom(modelType))
192
+            {
193
+                return GenerateDictionaryModelDescription(modelType, typeof(object), typeof(object));
194
+            }
195
+
196
+            if (typeof(IEnumerable).IsAssignableFrom(modelType))
197
+            {
198
+                return GenerateCollectionModelDescription(modelType, typeof(object));
199
+            }
200
+
201
+            return GenerateComplexTypeModelDescription(modelType);
202
+        }
203
+
204
+        // Change this to provide different name for the member.
205
+        private static string GetMemberName(MemberInfo member, bool hasDataContractAttribute)
206
+        {
207
+            JsonPropertyAttribute jsonProperty = member.GetCustomAttribute<JsonPropertyAttribute>();
208
+            if (jsonProperty != null && !String.IsNullOrEmpty(jsonProperty.PropertyName))
209
+            {
210
+                return jsonProperty.PropertyName;
211
+            }
212
+
213
+            if (hasDataContractAttribute)
214
+            {
215
+                DataMemberAttribute dataMember = member.GetCustomAttribute<DataMemberAttribute>();
216
+                if (dataMember != null && !String.IsNullOrEmpty(dataMember.Name))
217
+                {
218
+                    return dataMember.Name;
219
+                }
220
+            }
221
+
222
+            return member.Name;
223
+        }
224
+
225
+        private static bool ShouldDisplayMember(MemberInfo member, bool hasDataContractAttribute)
226
+        {
227
+            JsonIgnoreAttribute jsonIgnore = member.GetCustomAttribute<JsonIgnoreAttribute>();
228
+            XmlIgnoreAttribute xmlIgnore = member.GetCustomAttribute<XmlIgnoreAttribute>();
229
+            IgnoreDataMemberAttribute ignoreDataMember = member.GetCustomAttribute<IgnoreDataMemberAttribute>();
230
+            NonSerializedAttribute nonSerialized = member.GetCustomAttribute<NonSerializedAttribute>();
231
+            ApiExplorerSettingsAttribute apiExplorerSetting = member.GetCustomAttribute<ApiExplorerSettingsAttribute>();
232
+
233
+            bool hasMemberAttribute = member.DeclaringType.IsEnum ?
234
+                member.GetCustomAttribute<EnumMemberAttribute>() != null :
235
+                member.GetCustomAttribute<DataMemberAttribute>() != null;
236
+
237
+            // Display member only if all the followings are true:
238
+            // no JsonIgnoreAttribute
239
+            // no XmlIgnoreAttribute
240
+            // no IgnoreDataMemberAttribute
241
+            // no NonSerializedAttribute
242
+            // no ApiExplorerSettingsAttribute with IgnoreApi set to true
243
+            // no DataContractAttribute without DataMemberAttribute or EnumMemberAttribute
244
+            return jsonIgnore == null &&
245
+                xmlIgnore == null &&
246
+                ignoreDataMember == null &&
247
+                nonSerialized == null &&
248
+                (apiExplorerSetting == null || !apiExplorerSetting.IgnoreApi) &&
249
+                (!hasDataContractAttribute || hasMemberAttribute);
250
+        }
251
+
252
+        private string CreateDefaultDocumentation(Type type)
253
+        {
254
+            string documentation;
255
+            if (DefaultTypeDocumentation.TryGetValue(type, out documentation))
256
+            {
257
+                return documentation;
258
+            }
259
+            if (DocumentationProvider != null)
260
+            {
261
+                documentation = DocumentationProvider.GetDocumentation(type);
262
+            }
263
+
264
+            return documentation;
265
+        }
266
+
267
+        private void GenerateAnnotations(MemberInfo property, ParameterDescription propertyModel)
268
+        {
269
+            List<ParameterAnnotation> annotations = new List<ParameterAnnotation>();
270
+
271
+            IEnumerable<Attribute> attributes = property.GetCustomAttributes();
272
+            foreach (Attribute attribute in attributes)
273
+            {
274
+                Func<object, string> textGenerator;
275
+                if (AnnotationTextGenerator.TryGetValue(attribute.GetType(), out textGenerator))
276
+                {
277
+                    annotations.Add(
278
+                        new ParameterAnnotation
279
+                        {
280
+                            AnnotationAttribute = attribute,
281
+                            Documentation = textGenerator(attribute)
282
+                        });
283
+                }
284
+            }
285
+
286
+            // Rearrange the annotations
287
+            annotations.Sort((x, y) =>
288
+            {
289
+                // Special-case RequiredAttribute so that it shows up on top
290
+                if (x.AnnotationAttribute is RequiredAttribute)
291
+                {
292
+                    return -1;
293
+                }
294
+                if (y.AnnotationAttribute is RequiredAttribute)
295
+                {
296
+                    return 1;
297
+                }
298
+
299
+                // Sort the rest based on alphabetic order of the documentation
300
+                return String.Compare(x.Documentation, y.Documentation, StringComparison.OrdinalIgnoreCase);
301
+            });
302
+
303
+            foreach (ParameterAnnotation annotation in annotations)
304
+            {
305
+                propertyModel.Annotations.Add(annotation);
306
+            }
307
+        }
308
+
309
+        private CollectionModelDescription GenerateCollectionModelDescription(Type modelType, Type elementType)
310
+        {
311
+            ModelDescription collectionModelDescription = GetOrCreateModelDescription(elementType);
312
+            if (collectionModelDescription != null)
313
+            {
314
+                return new CollectionModelDescription
315
+                {
316
+                    Name = ModelNameHelper.GetModelName(modelType),
317
+                    ModelType = modelType,
318
+                    ElementDescription = collectionModelDescription
319
+                };
320
+            }
321
+
322
+            return null;
323
+        }
324
+
325
+        private ModelDescription GenerateComplexTypeModelDescription(Type modelType)
326
+        {
327
+            ComplexTypeModelDescription complexModelDescription = new ComplexTypeModelDescription
328
+            {
329
+                Name = ModelNameHelper.GetModelName(modelType),
330
+                ModelType = modelType,
331
+                Documentation = CreateDefaultDocumentation(modelType)
332
+            };
333
+
334
+            GeneratedModels.Add(complexModelDescription.Name, complexModelDescription);
335
+            bool hasDataContractAttribute = modelType.GetCustomAttribute<DataContractAttribute>() != null;
336
+            PropertyInfo[] properties = modelType.GetProperties(BindingFlags.Public | BindingFlags.Instance);
337
+            foreach (PropertyInfo property in properties)
338
+            {
339
+                if (ShouldDisplayMember(property, hasDataContractAttribute))
340
+                {
341
+                    ParameterDescription propertyModel = new ParameterDescription
342
+                    {
343
+                        Name = GetMemberName(property, hasDataContractAttribute)
344
+                    };
345
+
346
+                    if (DocumentationProvider != null)
347
+                    {
348
+                        propertyModel.Documentation = DocumentationProvider.GetDocumentation(property);
349
+                    }
350
+
351
+                    GenerateAnnotations(property, propertyModel);
352
+                    complexModelDescription.Properties.Add(propertyModel);
353
+                    propertyModel.TypeDescription = GetOrCreateModelDescription(property.PropertyType);
354
+                }
355
+            }
356
+
357
+            FieldInfo[] fields = modelType.GetFields(BindingFlags.Public | BindingFlags.Instance);
358
+            foreach (FieldInfo field in fields)
359
+            {
360
+                if (ShouldDisplayMember(field, hasDataContractAttribute))
361
+                {
362
+                    ParameterDescription propertyModel = new ParameterDescription
363
+                    {
364
+                        Name = GetMemberName(field, hasDataContractAttribute)
365
+                    };
366
+
367
+                    if (DocumentationProvider != null)
368
+                    {
369
+                        propertyModel.Documentation = DocumentationProvider.GetDocumentation(field);
370
+                    }
371
+
372
+                    complexModelDescription.Properties.Add(propertyModel);
373
+                    propertyModel.TypeDescription = GetOrCreateModelDescription(field.FieldType);
374
+                }
375
+            }
376
+
377
+            return complexModelDescription;
378
+        }
379
+
380
+        private DictionaryModelDescription GenerateDictionaryModelDescription(Type modelType, Type keyType, Type valueType)
381
+        {
382
+            ModelDescription keyModelDescription = GetOrCreateModelDescription(keyType);
383
+            ModelDescription valueModelDescription = GetOrCreateModelDescription(valueType);
384
+
385
+            return new DictionaryModelDescription
386
+            {
387
+                Name = ModelNameHelper.GetModelName(modelType),
388
+                ModelType = modelType,
389
+                KeyModelDescription = keyModelDescription,
390
+                ValueModelDescription = valueModelDescription
391
+            };
392
+        }
393
+
394
+        private EnumTypeModelDescription GenerateEnumTypeModelDescription(Type modelType)
395
+        {
396
+            EnumTypeModelDescription enumDescription = new EnumTypeModelDescription
397
+            {
398
+                Name = ModelNameHelper.GetModelName(modelType),
399
+                ModelType = modelType,
400
+                Documentation = CreateDefaultDocumentation(modelType)
401
+            };
402
+            bool hasDataContractAttribute = modelType.GetCustomAttribute<DataContractAttribute>() != null;
403
+            foreach (FieldInfo field in modelType.GetFields(BindingFlags.Public | BindingFlags.Static))
404
+            {
405
+                if (ShouldDisplayMember(field, hasDataContractAttribute))
406
+                {
407
+                    EnumValueDescription enumValue = new EnumValueDescription
408
+                    {
409
+                        Name = field.Name,
410
+                        Value = field.GetRawConstantValue().ToString()
411
+                    };
412
+                    if (DocumentationProvider != null)
413
+                    {
414
+                        enumValue.Documentation = DocumentationProvider.GetDocumentation(field);
415
+                    }
416
+                    enumDescription.Values.Add(enumValue);
417
+                }
418
+            }
419
+            GeneratedModels.Add(enumDescription.Name, enumDescription);
420
+
421
+            return enumDescription;
422
+        }
423
+
424
+        private KeyValuePairModelDescription GenerateKeyValuePairModelDescription(Type modelType, Type keyType, Type valueType)
425
+        {
426
+            ModelDescription keyModelDescription = GetOrCreateModelDescription(keyType);
427
+            ModelDescription valueModelDescription = GetOrCreateModelDescription(valueType);
428
+
429
+            return new KeyValuePairModelDescription
430
+            {
431
+                Name = ModelNameHelper.GetModelName(modelType),
432
+                ModelType = modelType,
433
+                KeyModelDescription = keyModelDescription,
434
+                ValueModelDescription = valueModelDescription
435
+            };
436
+        }
437
+
438
+        private ModelDescription GenerateSimpleTypeModelDescription(Type modelType)
439
+        {
440
+            SimpleTypeModelDescription simpleModelDescription = new SimpleTypeModelDescription
441
+            {
442
+                Name = ModelNameHelper.GetModelName(modelType),
443
+                ModelType = modelType,
444
+                Documentation = CreateDefaultDocumentation(modelType)
445
+            };
446
+            GeneratedModels.Add(simpleModelDescription.Name, simpleModelDescription);
447
+
448
+            return simpleModelDescription;
449
+        }
450
+    }
451
+}

+ 18
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/ModelNameAttribute.cs Datei anzeigen

@@ -0,0 +1,18 @@
1
+using System;
2
+
3
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
4
+{
5
+    /// <summary>
6
+    /// Use this attribute to change the name of the <see cref="ModelDescription"/> generated for a type.
7
+    /// </summary>
8
+    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, AllowMultiple = false, Inherited = false)]
9
+    public sealed class ModelNameAttribute : Attribute
10
+    {
11
+        public ModelNameAttribute(string name)
12
+        {
13
+            Name = name;
14
+        }
15
+
16
+        public string Name { get; private set; }
17
+    }
18
+}

+ 36
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/ModelNameHelper.cs Datei anzeigen

@@ -0,0 +1,36 @@
1
+using System;
2
+using System.Globalization;
3
+using System.Linq;
4
+using System.Reflection;
5
+
6
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
7
+{
8
+    internal static class ModelNameHelper
9
+    {
10
+        // Modify this to provide custom model name mapping.
11
+        public static string GetModelName(Type type)
12
+        {
13
+            ModelNameAttribute modelNameAttribute = type.GetCustomAttribute<ModelNameAttribute>();
14
+            if (modelNameAttribute != null && !String.IsNullOrEmpty(modelNameAttribute.Name))
15
+            {
16
+                return modelNameAttribute.Name;
17
+            }
18
+
19
+            string modelName = type.Name;
20
+            if (type.IsGenericType)
21
+            {
22
+                // Format the generic type name to something like: GenericOfAgurment1AndArgument2
23
+                Type genericType = type.GetGenericTypeDefinition();
24
+                Type[] genericArguments = type.GetGenericArguments();
25
+                string genericTypeName = genericType.Name;
26
+
27
+                // Trim the generic parameter counts from the name
28
+                genericTypeName = genericTypeName.Substring(0, genericTypeName.IndexOf('`'));
29
+                string[] argumentTypeNames = genericArguments.Select(t => GetModelName(t)).ToArray();
30
+                modelName = String.Format(CultureInfo.InvariantCulture, "{0}Of{1}", genericTypeName, String.Join("And", argumentTypeNames));
31
+            }
32
+
33
+            return modelName;
34
+        }
35
+    }
36
+}

+ 11
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/ParameterAnnotation.cs Datei anzeigen

@@ -0,0 +1,11 @@
1
+using System;
2
+
3
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
4
+{
5
+    public class ParameterAnnotation
6
+    {
7
+        public Attribute AnnotationAttribute { get; set; }
8
+
9
+        public string Documentation { get; set; }
10
+    }
11
+}

+ 21
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/ParameterDescription.cs Datei anzeigen

@@ -0,0 +1,21 @@
1
+using System.Collections.Generic;
2
+using System.Collections.ObjectModel;
3
+
4
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
5
+{
6
+    public class ParameterDescription
7
+    {
8
+        public ParameterDescription()
9
+        {
10
+            Annotations = new Collection<ParameterAnnotation>();
11
+        }
12
+
13
+        public Collection<ParameterAnnotation> Annotations { get; private set; }
14
+
15
+        public string Documentation { get; set; }
16
+
17
+        public string Name { get; set; }
18
+
19
+        public ModelDescription TypeDescription { get; set; }
20
+    }
21
+}

+ 6
- 0
CacheControl-test/Areas/HelpPage/ModelDescriptions/SimpleTypeModelDescription.cs Datei anzeigen

@@ -0,0 +1,6 @@
1
+namespace CacheControl_test.Areas.HelpPage.ModelDescriptions
2
+{
3
+    public class SimpleTypeModelDescription : ModelDescription
4
+    {
5
+    }
6
+}

+ 108
- 0
CacheControl-test/Areas/HelpPage/Models/HelpPageApiModel.cs Datei anzeigen

@@ -0,0 +1,108 @@
1
+using System.Collections.Generic;
2
+using System.Collections.ObjectModel;
3
+using System.Net.Http.Headers;
4
+using System.Web.Http.Description;
5
+using CacheControl_test.Areas.HelpPage.ModelDescriptions;
6
+
7
+namespace CacheControl_test.Areas.HelpPage.Models
8
+{
9
+    /// <summary>
10
+    /// The model that represents an API displayed on the help page.
11
+    /// </summary>
12
+    public class HelpPageApiModel
13
+    {
14
+        /// <summary>
15
+        /// Initializes a new instance of the <see cref="HelpPageApiModel"/> class.
16
+        /// </summary>
17
+        public HelpPageApiModel()
18
+        {
19
+            UriParameters = new Collection<ParameterDescription>();
20
+            SampleRequests = new Dictionary<MediaTypeHeaderValue, object>();
21
+            SampleResponses = new Dictionary<MediaTypeHeaderValue, object>();
22
+            ErrorMessages = new Collection<string>();
23
+        }
24
+
25
+        /// <summary>
26
+        /// Gets or sets the <see cref="ApiDescription"/> that describes the API.
27
+        /// </summary>
28
+        public ApiDescription ApiDescription { get; set; }
29
+
30
+        /// <summary>
31
+        /// Gets or sets the <see cref="ParameterDescription"/> collection that describes the URI parameters for the API.
32
+        /// </summary>
33
+        public Collection<ParameterDescription> UriParameters { get; private set; }
34
+
35
+        /// <summary>
36
+        /// Gets or sets the documentation for the request.
37
+        /// </summary>
38
+        public string RequestDocumentation { get; set; }
39
+
40
+        /// <summary>
41
+        /// Gets or sets the <see cref="ModelDescription"/> that describes the request body.
42
+        /// </summary>
43
+        public ModelDescription RequestModelDescription { get; set; }
44
+
45
+        /// <summary>
46
+        /// Gets the request body parameter descriptions.
47
+        /// </summary>
48
+        public IList<ParameterDescription> RequestBodyParameters
49
+        {
50
+            get
51
+            {
52
+                return GetParameterDescriptions(RequestModelDescription);
53
+            }
54
+        }
55
+
56
+        /// <summary>
57
+        /// Gets or sets the <see cref="ModelDescription"/> that describes the resource.
58
+        /// </summary>
59
+        public ModelDescription ResourceDescription { get; set; }
60
+
61
+        /// <summary>
62
+        /// Gets the resource property descriptions.
63
+        /// </summary>
64
+        public IList<ParameterDescription> ResourceProperties
65
+        {
66
+            get
67
+            {
68
+                return GetParameterDescriptions(ResourceDescription);
69
+            }
70
+        }
71
+
72
+        /// <summary>
73
+        /// Gets the sample requests associated with the API.
74
+        /// </summary>
75
+        public IDictionary<MediaTypeHeaderValue, object> SampleRequests { get; private set; }
76
+
77
+        /// <summary>
78
+        /// Gets the sample responses associated with the API.
79
+        /// </summary>
80
+        public IDictionary<MediaTypeHeaderValue, object> SampleResponses { get; private set; }
81
+
82
+        /// <summary>
83
+        /// Gets the error messages associated with this model.
84
+        /// </summary>
85
+        public Collection<string> ErrorMessages { get; private set; }
86
+
87
+        private static IList<ParameterDescription> GetParameterDescriptions(ModelDescription modelDescription)
88
+        {
89
+            ComplexTypeModelDescription complexTypeModelDescription = modelDescription as ComplexTypeModelDescription;
90
+            if (complexTypeModelDescription != null)
91
+            {
92
+                return complexTypeModelDescription.Properties;
93
+            }
94
+
95
+            CollectionModelDescription collectionModelDescription = modelDescription as CollectionModelDescription;
96
+            if (collectionModelDescription != null)
97
+            {
98
+                complexTypeModelDescription = collectionModelDescription.ElementDescription as ComplexTypeModelDescription;
99
+                if (complexTypeModelDescription != null)
100
+                {
101
+                    return complexTypeModelDescription.Properties;
102
+                }
103
+            }
104
+
105
+            return null;
106
+        }
107
+    }
108
+}

+ 444
- 0
CacheControl-test/Areas/HelpPage/SampleGeneration/HelpPageSampleGenerator.cs Datei anzeigen

@@ -0,0 +1,444 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Collections.ObjectModel;
4
+using System.ComponentModel;
5
+using System.Diagnostics.CodeAnalysis;
6
+using System.Globalization;
7
+using System.IO;
8
+using System.Linq;
9
+using System.Net.Http;
10
+using System.Net.Http.Formatting;
11
+using System.Net.Http.Headers;
12
+using System.Web.Http.Description;
13
+using System.Xml.Linq;
14
+using Newtonsoft.Json;
15
+
16
+namespace CacheControl_test.Areas.HelpPage
17
+{
18
+    /// <summary>
19
+    /// This class will generate the samples for the help page.
20
+    /// </summary>
21
+    public class HelpPageSampleGenerator
22
+    {
23
+        /// <summary>
24
+        /// Initializes a new instance of the <see cref="HelpPageSampleGenerator"/> class.
25
+        /// </summary>
26
+        public HelpPageSampleGenerator()
27
+        {
28
+            ActualHttpMessageTypes = new Dictionary<HelpPageSampleKey, Type>();
29
+            ActionSamples = new Dictionary<HelpPageSampleKey, object>();
30
+            SampleObjects = new Dictionary<Type, object>();
31
+            SampleObjectFactories = new List<Func<HelpPageSampleGenerator, Type, object>>
32
+            {
33
+                DefaultSampleObjectFactory,
34
+            };
35
+        }
36
+
37
+        /// <summary>
38
+        /// Gets CLR types that are used as the content of <see cref="HttpRequestMessage"/> or <see cref="HttpResponseMessage"/>.
39
+        /// </summary>
40
+        public IDictionary<HelpPageSampleKey, Type> ActualHttpMessageTypes { get; internal set; }
41
+
42
+        /// <summary>
43
+        /// Gets the objects that are used directly as samples for certain actions.
44
+        /// </summary>
45
+        public IDictionary<HelpPageSampleKey, object> ActionSamples { get; internal set; }
46
+
47
+        /// <summary>
48
+        /// Gets the objects that are serialized as samples by the supported formatters.
49
+        /// </summary>
50
+        public IDictionary<Type, object> SampleObjects { get; internal set; }
51
+
52
+        /// <summary>
53
+        /// Gets factories for the objects that the supported formatters will serialize as samples. Processed in order,
54
+        /// stopping when the factory successfully returns a non-<see langref="null"/> object.
55
+        /// </summary>
56
+        /// <remarks>
57
+        /// Collection includes just <see cref="ObjectGenerator.GenerateObject(Type)"/> initially. Use
58
+        /// <code>SampleObjectFactories.Insert(0, func)</code> to provide an override and
59
+        /// <code>SampleObjectFactories.Add(func)</code> to provide a fallback.</remarks>
60
+        [SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures",
61
+            Justification = "This is an appropriate nesting of generic types")]
62
+        public IList<Func<HelpPageSampleGenerator, Type, object>> SampleObjectFactories { get; private set; }
63
+
64
+        /// <summary>
65
+        /// Gets the request body samples for a given <see cref="ApiDescription"/>.
66
+        /// </summary>
67
+        /// <param name="api">The <see cref="ApiDescription"/>.</param>
68
+        /// <returns>The samples keyed by media type.</returns>
69
+        public IDictionary<MediaTypeHeaderValue, object> GetSampleRequests(ApiDescription api)
70
+        {
71
+            return GetSample(api, SampleDirection.Request);
72
+        }
73
+
74
+        /// <summary>
75
+        /// Gets the response body samples for a given <see cref="ApiDescription"/>.
76
+        /// </summary>
77
+        /// <param name="api">The <see cref="ApiDescription"/>.</param>
78
+        /// <returns>The samples keyed by media type.</returns>
79
+        public IDictionary<MediaTypeHeaderValue, object> GetSampleResponses(ApiDescription api)
80
+        {
81
+            return GetSample(api, SampleDirection.Response);
82
+        }
83
+
84
+        /// <summary>
85
+        /// Gets the request or response body samples.
86
+        /// </summary>
87
+        /// <param name="api">The <see cref="ApiDescription"/>.</param>
88
+        /// <param name="sampleDirection">The value indicating whether the sample is for a request or for a response.</param>
89
+        /// <returns>The samples keyed by media type.</returns>
90
+        public virtual IDictionary<MediaTypeHeaderValue, object> GetSample(ApiDescription api, SampleDirection sampleDirection)
91
+        {
92
+            if (api == null)
93
+            {
94
+                throw new ArgumentNullException("api");
95
+            }
96
+            string controllerName = api.ActionDescriptor.ControllerDescriptor.ControllerName;
97
+            string actionName = api.ActionDescriptor.ActionName;
98
+            IEnumerable<string> parameterNames = api.ParameterDescriptions.Select(p => p.Name);
99
+            Collection<MediaTypeFormatter> formatters;
100
+            Type type = ResolveType(api, controllerName, actionName, parameterNames, sampleDirection, out formatters);
101
+            var samples = new Dictionary<MediaTypeHeaderValue, object>();
102
+
103
+            // Use the samples provided directly for actions
104
+            var actionSamples = GetAllActionSamples(controllerName, actionName, parameterNames, sampleDirection);
105
+            foreach (var actionSample in actionSamples)
106
+            {
107
+                samples.Add(actionSample.Key.MediaType, WrapSampleIfString(actionSample.Value));
108
+            }
109
+
110
+            // Do the sample generation based on formatters only if an action doesn't return an HttpResponseMessage.
111
+            // Here we cannot rely on formatters because we don't know what's in the HttpResponseMessage, it might not even use formatters.
112
+            if (type != null && !typeof(HttpResponseMessage).IsAssignableFrom(type))
113
+            {
114
+                object sampleObject = GetSampleObject(type);
115
+                foreach (var formatter in formatters)
116
+                {
117
+                    foreach (MediaTypeHeaderValue mediaType in formatter.SupportedMediaTypes)
118
+                    {
119
+                        if (!samples.ContainsKey(mediaType))
120
+                        {
121
+                            object sample = GetActionSample(controllerName, actionName, parameterNames, type, formatter, mediaType, sampleDirection);
122
+
123
+                            // If no sample found, try generate sample using formatter and sample object
124
+                            if (sample == null && sampleObject != null)
125
+                            {
126
+                                sample = WriteSampleObjectUsingFormatter(formatter, sampleObject, type, mediaType);
127
+                            }
128
+
129
+                            samples.Add(mediaType, WrapSampleIfString(sample));
130
+                        }
131
+                    }
132
+                }
133
+            }
134
+
135
+            return samples;
136
+        }
137
+
138
+        /// <summary>
139
+        /// Search for samples that are provided directly through <see cref="ActionSamples"/>.
140
+        /// </summary>
141
+        /// <param name="controllerName">Name of the controller.</param>
142
+        /// <param name="actionName">Name of the action.</param>
143
+        /// <param name="parameterNames">The parameter names.</param>
144
+        /// <param name="type">The CLR type.</param>
145
+        /// <param name="formatter">The formatter.</param>
146
+        /// <param name="mediaType">The media type.</param>
147
+        /// <param name="sampleDirection">The value indicating whether the sample is for a request or for a response.</param>
148
+        /// <returns>The sample that matches the parameters.</returns>
149
+        public virtual object GetActionSample(string controllerName, string actionName, IEnumerable<string> parameterNames, Type type, MediaTypeFormatter formatter, MediaTypeHeaderValue mediaType, SampleDirection sampleDirection)
150
+        {
151
+            object sample;
152
+
153
+            // First, try to get the sample provided for the specified mediaType, sampleDirection, controllerName, actionName and parameterNames.
154
+            // If not found, try to get the sample provided for the specified mediaType, sampleDirection, controllerName and actionName regardless of the parameterNames.
155
+            // If still not found, try to get the sample provided for the specified mediaType and type.
156
+            // Finally, try to get the sample provided for the specified mediaType.
157
+            if (ActionSamples.TryGetValue(new HelpPageSampleKey(mediaType, sampleDirection, controllerName, actionName, parameterNames), out sample) ||
158
+                ActionSamples.TryGetValue(new HelpPageSampleKey(mediaType, sampleDirection, controllerName, actionName, new[] { "*" }), out sample) ||
159
+                ActionSamples.TryGetValue(new HelpPageSampleKey(mediaType, type), out sample) ||
160
+                ActionSamples.TryGetValue(new HelpPageSampleKey(mediaType), out sample))
161
+            {
162
+                return sample;
163
+            }
164
+
165
+            return null;
166
+        }
167
+
168
+        /// <summary>
169
+        /// Gets the sample object that will be serialized by the formatters. 
170
+        /// First, it will look at the <see cref="SampleObjects"/>. If no sample object is found, it will try to create
171
+        /// one using <see cref="DefaultSampleObjectFactory"/> (which wraps an <see cref="ObjectGenerator"/>) and other
172
+        /// factories in <see cref="SampleObjectFactories"/>.
173
+        /// </summary>
174
+        /// <param name="type">The type.</param>
175
+        /// <returns>The sample object.</returns>
176
+        [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes",
177
+            Justification = "Even if all items in SampleObjectFactories throw, problem will be visible as missing sample.")]
178
+        public virtual object GetSampleObject(Type type)
179
+        {
180
+            object sampleObject;
181
+
182
+            if (!SampleObjects.TryGetValue(type, out sampleObject))
183
+            {
184
+                // No specific object available, try our factories.
185
+                foreach (Func<HelpPageSampleGenerator, Type, object> factory in SampleObjectFactories)
186
+                {
187
+                    if (factory == null)
188
+                    {
189
+                        continue;
190
+                    }
191
+
192
+                    try
193
+                    {
194
+                        sampleObject = factory(this, type);
195
+                        if (sampleObject != null)
196
+                        {
197
+                            break;
198
+                        }
199
+                    }
200
+                    catch
201
+                    {
202
+                        // Ignore any problems encountered in the factory; go on to the next one (if any).
203
+                    }
204
+                }
205
+            }
206
+
207
+            return sampleObject;
208
+        }
209
+
210
+        /// <summary>
211
+        /// Resolves the actual type of <see cref="System.Net.Http.ObjectContent{T}"/> passed to the <see cref="System.Net.Http.HttpRequestMessage"/> in an action.
212
+        /// </summary>
213
+        /// <param name="api">The <see cref="ApiDescription"/>.</param>
214
+        /// <returns>The type.</returns>
215
+        public virtual Type ResolveHttpRequestMessageType(ApiDescription api)
216
+        {
217
+            string controllerName = api.ActionDescriptor.ControllerDescriptor.ControllerName;
218
+            string actionName = api.ActionDescriptor.ActionName;
219
+            IEnumerable<string> parameterNames = api.ParameterDescriptions.Select(p => p.Name);
220
+            Collection<MediaTypeFormatter> formatters;
221
+            return ResolveType(api, controllerName, actionName, parameterNames, SampleDirection.Request, out formatters);
222
+        }
223
+
224
+        /// <summary>
225
+        /// Resolves the type of the action parameter or return value when <see cref="HttpRequestMessage"/> or <see cref="HttpResponseMessage"/> is used.
226
+        /// </summary>
227
+        /// <param name="api">The <see cref="ApiDescription"/>.</param>
228
+        /// <param name="controllerName">Name of the controller.</param>
229
+        /// <param name="actionName">Name of the action.</param>
230
+        /// <param name="parameterNames">The parameter names.</param>
231
+        /// <param name="sampleDirection">The value indicating whether the sample is for a request or a response.</param>
232
+        /// <param name="formatters">The formatters.</param>
233
+        [SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", Justification = "This is only used in advanced scenarios.")]
234
+        public virtual Type ResolveType(ApiDescription api, string controllerName, string actionName, IEnumerable<string> parameterNames, SampleDirection sampleDirection, out Collection<MediaTypeFormatter> formatters)
235
+        {
236
+            if (!Enum.IsDefined(typeof(SampleDirection), sampleDirection))
237
+            {
238
+                throw new InvalidEnumArgumentException("sampleDirection", (int)sampleDirection, typeof(SampleDirection));
239
+            }
240
+            if (api == null)
241
+            {
242
+                throw new ArgumentNullException("api");
243
+            }
244
+            Type type;
245
+            if (ActualHttpMessageTypes.TryGetValue(new HelpPageSampleKey(sampleDirection, controllerName, actionName, parameterNames), out type) ||
246
+                ActualHttpMessageTypes.TryGetValue(new HelpPageSampleKey(sampleDirection, controllerName, actionName, new[] { "*" }), out type))
247
+            {
248
+                // Re-compute the supported formatters based on type
249
+                Collection<MediaTypeFormatter> newFormatters = new Collection<MediaTypeFormatter>();
250
+                foreach (var formatter in api.ActionDescriptor.Configuration.Formatters)
251
+                {
252
+                    if (IsFormatSupported(sampleDirection, formatter, type))
253
+                    {
254
+                        newFormatters.Add(formatter);
255
+                    }
256
+                }
257
+                formatters = newFormatters;
258
+            }
259
+            else
260
+            {
261
+                switch (sampleDirection)
262
+                {
263
+                    case SampleDirection.Request:
264
+                        ApiParameterDescription requestBodyParameter = api.ParameterDescriptions.FirstOrDefault(p => p.Source == ApiParameterSource.FromBody);
265
+                        type = requestBodyParameter == null ? null : requestBodyParameter.ParameterDescriptor.ParameterType;
266
+                        formatters = api.SupportedRequestBodyFormatters;
267
+                        break;
268
+                    case SampleDirection.Response:
269
+                    default:
270
+                        type = api.ResponseDescription.ResponseType ?? api.ResponseDescription.DeclaredType;
271
+                        formatters = api.SupportedResponseFormatters;
272
+                        break;
273
+                }
274
+            }
275
+
276
+            return type;
277
+        }
278
+
279
+        /// <summary>
280
+        /// Writes the sample object using formatter.
281
+        /// </summary>
282
+        /// <param name="formatter">The formatter.</param>
283
+        /// <param name="value">The value.</param>
284
+        /// <param name="type">The type.</param>
285
+        /// <param name="mediaType">Type of the media.</param>
286
+        /// <returns></returns>
287
+        [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "The exception is recorded as InvalidSample.")]
288
+        public virtual object WriteSampleObjectUsingFormatter(MediaTypeFormatter formatter, object value, Type type, MediaTypeHeaderValue mediaType)
289
+        {
290
+            if (formatter == null)
291
+            {
292
+                throw new ArgumentNullException("formatter");
293
+            }
294
+            if (mediaType == null)
295
+            {
296
+                throw new ArgumentNullException("mediaType");
297
+            }
298
+
299
+            object sample = String.Empty;
300
+            MemoryStream ms = null;
301
+            HttpContent content = null;
302
+            try
303
+            {
304
+                if (formatter.CanWriteType(type))
305
+                {
306
+                    ms = new MemoryStream();
307
+                    content = new ObjectContent(type, value, formatter, mediaType);
308
+                    formatter.WriteToStreamAsync(type, value, ms, content, null).Wait();
309
+                    ms.Position = 0;
310
+                    StreamReader reader = new StreamReader(ms);
311
+                    string serializedSampleString = reader.ReadToEnd();
312
+                    if (mediaType.MediaType.ToUpperInvariant().Contains("XML"))
313
+                    {
314
+                        serializedSampleString = TryFormatXml(serializedSampleString);
315
+                    }
316
+                    else if (mediaType.MediaType.ToUpperInvariant().Contains("JSON"))
317
+                    {
318
+                        serializedSampleString = TryFormatJson(serializedSampleString);
319
+                    }
320
+
321
+                    sample = new TextSample(serializedSampleString);
322
+                }
323
+                else
324
+                {
325
+                    sample = new InvalidSample(String.Format(
326
+                        CultureInfo.CurrentCulture,
327
+                        "Failed to generate the sample for media type '{0}'. Cannot use formatter '{1}' to write type '{2}'.",
328
+                        mediaType,
329
+                        formatter.GetType().Name,
330
+                        type.Name));
331
+                }
332
+            }
333
+            catch (Exception e)
334
+            {
335
+                sample = new InvalidSample(String.Format(
336
+                    CultureInfo.CurrentCulture,
337
+                    "An exception has occurred while using the formatter '{0}' to generate sample for media type '{1}'. Exception message: {2}",
338
+                    formatter.GetType().Name,
339
+                    mediaType.MediaType,
340
+                    UnwrapException(e).Message));
341
+            }
342
+            finally
343
+            {
344
+                if (ms != null)
345
+                {
346
+                    ms.Dispose();
347
+                }
348
+                if (content != null)
349
+                {
350
+                    content.Dispose();
351
+                }
352
+            }
353
+
354
+            return sample;
355
+        }
356
+
357
+        internal static Exception UnwrapException(Exception exception)
358
+        {
359
+            AggregateException aggregateException = exception as AggregateException;
360
+            if (aggregateException != null)
361
+            {
362
+                return aggregateException.Flatten().InnerException;
363
+            }
364
+            return exception;
365
+        }
366
+
367
+        // Default factory for sample objects
368
+        private static object DefaultSampleObjectFactory(HelpPageSampleGenerator sampleGenerator, Type type)
369
+        {
370
+            // Try to create a default sample object
371
+            ObjectGenerator objectGenerator = new ObjectGenerator();
372
+            return objectGenerator.GenerateObject(type);
373
+        }
374
+
375
+        [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Handling the failure by returning the original string.")]
376
+        private static string TryFormatJson(string str)
377
+        {
378
+            try
379
+            {
380
+                object parsedJson = JsonConvert.DeserializeObject(str);
381
+                return JsonConvert.SerializeObject(parsedJson, Formatting.Indented);
382
+            }
383
+            catch
384
+            {
385
+                // can't parse JSON, return the original string
386
+                return str;
387
+            }
388
+        }
389
+
390
+        [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Handling the failure by returning the original string.")]
391
+        private static string TryFormatXml(string str)
392
+        {
393
+            try
394
+            {
395
+                XDocument xml = XDocument.Parse(str);
396
+                return xml.ToString();
397
+            }
398
+            catch
399
+            {
400
+                // can't parse XML, return the original string
401
+                return str;
402
+            }
403
+        }
404
+
405
+        private static bool IsFormatSupported(SampleDirection sampleDirection, MediaTypeFormatter formatter, Type type)
406
+        {
407
+            switch (sampleDirection)
408
+            {
409
+                case SampleDirection.Request:
410
+                    return formatter.CanReadType(type);
411
+                case SampleDirection.Response:
412
+                    return formatter.CanWriteType(type);
413
+            }
414
+            return false;
415
+        }
416
+
417
+        private IEnumerable<KeyValuePair<HelpPageSampleKey, object>> GetAllActionSamples(string controllerName, string actionName, IEnumerable<string> parameterNames, SampleDirection sampleDirection)
418
+        {
419
+            HashSet<string> parameterNamesSet = new HashSet<string>(parameterNames, StringComparer.OrdinalIgnoreCase);
420
+            foreach (var sample in ActionSamples)
421
+            {
422
+                HelpPageSampleKey sampleKey = sample.Key;
423
+                if (String.Equals(controllerName, sampleKey.ControllerName, StringComparison.OrdinalIgnoreCase) &&
424
+                    String.Equals(actionName, sampleKey.ActionName, StringComparison.OrdinalIgnoreCase) &&
425
+                    (sampleKey.ParameterNames.SetEquals(new[] { "*" }) || parameterNamesSet.SetEquals(sampleKey.ParameterNames)) &&
426
+                    sampleDirection == sampleKey.SampleDirection)
427
+                {
428
+                    yield return sample;
429
+                }
430
+            }
431
+        }
432
+
433
+        private static object WrapSampleIfString(object sample)
434
+        {
435
+            string stringSample = sample as string;
436
+            if (stringSample != null)
437
+            {
438
+                return new TextSample(stringSample);
439
+            }
440
+
441
+            return sample;
442
+        }
443
+    }
444
+}

+ 172
- 0
CacheControl-test/Areas/HelpPage/SampleGeneration/HelpPageSampleKey.cs Datei anzeigen

@@ -0,0 +1,172 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Net.Http.Headers;
5
+
6
+namespace CacheControl_test.Areas.HelpPage
7
+{
8
+    /// <summary>
9
+    /// This is used to identify the place where the sample should be applied.
10
+    /// </summary>
11
+    public class HelpPageSampleKey
12
+    {
13
+        /// <summary>
14
+        /// Creates a new <see cref="HelpPageSampleKey"/> based on media type.
15
+        /// </summary>
16
+        /// <param name="mediaType">The media type.</param>
17
+        public HelpPageSampleKey(MediaTypeHeaderValue mediaType)
18
+        {
19
+            if (mediaType == null)
20
+            {
21
+                throw new ArgumentNullException("mediaType");
22
+            }
23
+
24
+            ActionName = String.Empty;
25
+            ControllerName = String.Empty;
26
+            MediaType = mediaType;
27
+            ParameterNames = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
28
+        }
29
+
30
+        /// <summary>
31
+        /// Creates a new <see cref="HelpPageSampleKey"/> based on media type and CLR type.
32
+        /// </summary>
33
+        /// <param name="mediaType">The media type.</param>
34
+        /// <param name="type">The CLR type.</param>
35
+        public HelpPageSampleKey(MediaTypeHeaderValue mediaType, Type type)
36
+            : this(mediaType)
37
+        {
38
+            if (type == null)
39
+            {
40
+                throw new ArgumentNullException("type");
41
+            }
42
+
43
+            ParameterType = type;
44
+        }
45
+
46
+        /// <summary>
47
+        /// Creates a new <see cref="HelpPageSampleKey"/> based on <see cref="SampleDirection"/>, controller name, action name and parameter names.
48
+        /// </summary>
49
+        /// <param name="sampleDirection">The <see cref="SampleDirection"/>.</param>
50
+        /// <param name="controllerName">Name of the controller.</param>
51
+        /// <param name="actionName">Name of the action.</param>
52
+        /// <param name="parameterNames">The parameter names.</param>
53
+        public HelpPageSampleKey(SampleDirection sampleDirection, string controllerName, string actionName, IEnumerable<string> parameterNames)
54
+        {
55
+            if (!Enum.IsDefined(typeof(SampleDirection), sampleDirection))
56
+            {
57
+                throw new InvalidEnumArgumentException("sampleDirection", (int)sampleDirection, typeof(SampleDirection));
58
+            }
59
+            if (controllerName == null)
60
+            {
61
+                throw new ArgumentNullException("controllerName");
62
+            }
63
+            if (actionName == null)
64
+            {
65
+                throw new ArgumentNullException("actionName");
66
+            }
67
+            if (parameterNames == null)
68
+            {
69
+                throw new ArgumentNullException("parameterNames");
70
+            }
71
+
72
+            ControllerName = controllerName;
73
+            ActionName = actionName;
74
+            ParameterNames = new HashSet<string>(parameterNames, StringComparer.OrdinalIgnoreCase);
75
+            SampleDirection = sampleDirection;
76
+        }
77
+
78
+        /// <summary>
79
+        /// Creates a new <see cref="HelpPageSampleKey"/> based on media type, <see cref="SampleDirection"/>, controller name, action name and parameter names.
80
+        /// </summary>
81
+        /// <param name="mediaType">The media type.</param>
82
+        /// <param name="sampleDirection">The <see cref="SampleDirection"/>.</param>
83
+        /// <param name="controllerName">Name of the controller.</param>
84
+        /// <param name="actionName">Name of the action.</param>
85
+        /// <param name="parameterNames">The parameter names.</param>
86
+        public HelpPageSampleKey(MediaTypeHeaderValue mediaType, SampleDirection sampleDirection, string controllerName, string actionName, IEnumerable<string> parameterNames)
87
+            : this(sampleDirection, controllerName, actionName, parameterNames)
88
+        {
89
+            if (mediaType == null)
90
+            {
91
+                throw new ArgumentNullException("mediaType");
92
+            }
93
+
94
+            MediaType = mediaType;
95
+        }
96
+
97
+        /// <summary>
98
+        /// Gets the name of the controller.
99
+        /// </summary>
100
+        /// <value>
101
+        /// The name of the controller.
102
+        /// </value>
103
+        public string ControllerName { get; private set; }
104
+
105
+        /// <summary>
106
+        /// Gets the name of the action.
107
+        /// </summary>
108
+        /// <value>
109
+        /// The name of the action.
110
+        /// </value>
111
+        public string ActionName { get; private set; }
112
+
113
+        /// <summary>
114
+        /// Gets the media type.
115
+        /// </summary>
116
+        /// <value>
117
+        /// The media type.
118
+        /// </value>
119
+        public MediaTypeHeaderValue MediaType { get; private set; }
120
+
121
+        /// <summary>
122
+        /// Gets the parameter names.
123
+        /// </summary>
124
+        public HashSet<string> ParameterNames { get; private set; }
125
+
126
+        public Type ParameterType { get; private set; }
127
+
128
+        /// <summary>
129
+        /// Gets the <see cref="SampleDirection"/>.
130
+        /// </summary>
131
+        public SampleDirection? SampleDirection { get; private set; }
132
+
133
+        public override bool Equals(object obj)
134
+        {
135
+            HelpPageSampleKey otherKey = obj as HelpPageSampleKey;
136
+            if (otherKey == null)
137
+            {
138
+                return false;
139
+            }
140
+
141
+            return String.Equals(ControllerName, otherKey.ControllerName, StringComparison.OrdinalIgnoreCase) &&
142
+                String.Equals(ActionName, otherKey.ActionName, StringComparison.OrdinalIgnoreCase) &&
143
+                (MediaType == otherKey.MediaType || (MediaType != null && MediaType.Equals(otherKey.MediaType))) &&
144
+                ParameterType == otherKey.ParameterType &&
145
+                SampleDirection == otherKey.SampleDirection &&
146
+                ParameterNames.SetEquals(otherKey.ParameterNames);
147
+        }
148
+
149
+        public override int GetHashCode()
150
+        {
151
+            int hashCode = ControllerName.ToUpperInvariant().GetHashCode() ^ ActionName.ToUpperInvariant().GetHashCode();
152
+            if (MediaType != null)
153
+            {
154
+                hashCode ^= MediaType.GetHashCode();
155
+            }
156
+            if (SampleDirection != null)
157
+            {
158
+                hashCode ^= SampleDirection.GetHashCode();
159
+            }
160
+            if (ParameterType != null)
161
+            {
162
+                hashCode ^= ParameterType.GetHashCode();
163
+            }
164
+            foreach (string parameterName in ParameterNames)
165
+            {
166
+                hashCode ^= parameterName.ToUpperInvariant().GetHashCode();
167
+            }
168
+
169
+            return hashCode;
170
+        }
171
+    }
172
+}

+ 41
- 0
CacheControl-test/Areas/HelpPage/SampleGeneration/ImageSample.cs Datei anzeigen

@@ -0,0 +1,41 @@
1
+using System;
2
+
3
+namespace CacheControl_test.Areas.HelpPage
4
+{
5
+    /// <summary>
6
+    /// This represents an image sample on the help page. There's a display template named ImageSample associated with this class.
7
+    /// </summary>
8
+    public class ImageSample
9
+    {
10
+        /// <summary>
11
+        /// Initializes a new instance of the <see cref="ImageSample"/> class.
12
+        /// </summary>
13
+        /// <param name="src">The URL of an image.</param>
14
+        public ImageSample(string src)
15
+        {
16
+            if (src == null)
17
+            {
18
+                throw new ArgumentNullException("src");
19
+            }
20
+            Src = src;
21
+        }
22
+
23
+        public string Src { get; private set; }
24
+
25
+        public override bool Equals(object obj)
26
+        {
27
+            ImageSample other = obj as ImageSample;
28
+            return other != null && Src == other.Src;
29
+        }
30
+
31
+        public override int GetHashCode()
32
+        {
33
+            return Src.GetHashCode();
34
+        }
35
+
36
+        public override string ToString()
37
+        {
38
+            return Src;
39
+        }
40
+    }
41
+}

+ 37
- 0
CacheControl-test/Areas/HelpPage/SampleGeneration/InvalidSample.cs Datei anzeigen

@@ -0,0 +1,37 @@
1
+using System;
2
+
3
+namespace CacheControl_test.Areas.HelpPage
4
+{
5
+    /// <summary>
6
+    /// This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class.
7
+    /// </summary>
8
+    public class InvalidSample
9
+    {
10
+        public InvalidSample(string errorMessage)
11
+        {
12
+            if (errorMessage == null)
13
+            {
14
+                throw new ArgumentNullException("errorMessage");
15
+            }
16
+            ErrorMessage = errorMessage;
17
+        }
18
+
19
+        public string ErrorMessage { get; private set; }
20
+
21
+        public override bool Equals(object obj)
22
+        {
23
+            InvalidSample other = obj as InvalidSample;
24
+            return other != null && ErrorMessage == other.ErrorMessage;
25
+        }
26
+
27
+        public override int GetHashCode()
28
+        {
29
+            return ErrorMessage.GetHashCode();
30
+        }
31
+
32
+        public override string ToString()
33
+        {
34
+            return ErrorMessage;
35
+        }
36
+    }
37
+}

+ 456
- 0
CacheControl-test/Areas/HelpPage/SampleGeneration/ObjectGenerator.cs Datei anzeigen

@@ -0,0 +1,456 @@
1
+using System;
2
+using System.Collections;
3
+using System.Collections.Generic;
4
+using System.Diagnostics.CodeAnalysis;
5
+using System.Globalization;
6
+using System.Linq;
7
+using System.Reflection;
8
+
9
+namespace CacheControl_test.Areas.HelpPage
10
+{
11
+    /// <summary>
12
+    /// This class will create an object of a given type and populate it with sample data.
13
+    /// </summary>
14
+    public class ObjectGenerator
15
+    {
16
+        internal const int DefaultCollectionSize = 2;
17
+        private readonly SimpleTypeObjectGenerator SimpleObjectGenerator = new SimpleTypeObjectGenerator();
18
+
19
+        /// <summary>
20
+        /// Generates an object for a given type. The type needs to be public, have a public default constructor and settable public properties/fields. Currently it supports the following types:
21
+        /// Simple types: <see cref="int"/>, <see cref="string"/>, <see cref="Enum"/>, <see cref="DateTime"/>, <see cref="Uri"/>, etc.
22
+        /// Complex types: POCO types.
23
+        /// Nullables: <see cref="Nullable{T}"/>.
24
+        /// Arrays: arrays of simple types or complex types.
25
+        /// Key value pairs: <see cref="KeyValuePair{TKey,TValue}"/>
26
+        /// Tuples: <see cref="Tuple{T1}"/>, <see cref="Tuple{T1,T2}"/>, etc
27
+        /// Dictionaries: <see cref="IDictionary{TKey,TValue}"/> or anything deriving from <see cref="IDictionary{TKey,TValue}"/>.
28
+        /// Collections: <see cref="IList{T}"/>, <see cref="IEnumerable{T}"/>, <see cref="ICollection{T}"/>, <see cref="IList"/>, <see cref="IEnumerable"/>, <see cref="ICollection"/> or anything deriving from <see cref="ICollection{T}"/> or <see cref="IList"/>.
29
+        /// Queryables: <see cref="IQueryable"/>, <see cref="IQueryable{T}"/>.
30
+        /// </summary>
31
+        /// <param name="type">The type.</param>
32
+        /// <returns>An object of the given type.</returns>
33
+        public object GenerateObject(Type type)
34
+        {
35
+            return GenerateObject(type, new Dictionary<Type, object>());
36
+        }
37
+
38
+        [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Here we just want to return null if anything goes wrong.")]
39
+        private object GenerateObject(Type type, Dictionary<Type, object> createdObjectReferences)
40
+        {
41
+            try
42
+            {
43
+                if (SimpleTypeObjectGenerator.CanGenerateObject(type))
44
+                {
45
+                    return SimpleObjectGenerator.GenerateObject(type);
46
+                }
47
+
48
+                if (type.IsArray)
49
+                {
50
+                    return GenerateArray(type, DefaultCollectionSize, createdObjectReferences);
51
+                }
52
+
53
+                if (type.IsGenericType)
54
+                {
55
+                    return GenerateGenericType(type, DefaultCollectionSize, createdObjectReferences);
56
+                }
57
+
58
+                if (type == typeof(IDictionary))
59
+                {
60
+                    return GenerateDictionary(typeof(Hashtable), DefaultCollectionSize, createdObjectReferences);
61
+                }
62
+
63
+                if (typeof(IDictionary).IsAssignableFrom(type))
64
+                {
65
+                    return GenerateDictionary(type, DefaultCollectionSize, createdObjectReferences);
66
+                }
67
+
68
+                if (type == typeof(IList) ||
69
+                    type == typeof(IEnumerable) ||
70
+                    type == typeof(ICollection))
71
+                {
72
+                    return GenerateCollection(typeof(ArrayList), DefaultCollectionSize, createdObjectReferences);
73
+                }
74
+
75
+                if (typeof(IList).IsAssignableFrom(type))
76
+                {
77
+                    return GenerateCollection(type, DefaultCollectionSize, createdObjectReferences);
78
+                }
79
+
80
+                if (type == typeof(IQueryable))
81
+                {
82
+                    return GenerateQueryable(type, DefaultCollectionSize, createdObjectReferences);
83
+                }
84
+
85
+                if (type.IsEnum)
86
+                {
87
+                    return GenerateEnum(type);
88
+                }
89
+
90
+                if (type.IsPublic || type.IsNestedPublic)
91
+                {
92
+                    return GenerateComplexObject(type, createdObjectReferences);
93
+                }
94
+            }
95
+            catch
96
+            {
97
+                // Returns null if anything fails
98
+                return null;
99
+            }
100
+
101
+            return null;
102
+        }
103
+
104
+        private static object GenerateGenericType(Type type, int collectionSize, Dictionary<Type, object> createdObjectReferences)
105
+        {
106
+            Type genericTypeDefinition = type.GetGenericTypeDefinition();
107
+            if (genericTypeDefinition == typeof(Nullable<>))
108
+            {
109
+                return GenerateNullable(type, createdObjectReferences);
110
+            }
111
+
112
+            if (genericTypeDefinition == typeof(KeyValuePair<,>))
113
+            {
114
+                return GenerateKeyValuePair(type, createdObjectReferences);
115
+            }
116
+
117
+            if (IsTuple(genericTypeDefinition))
118
+            {
119
+                return GenerateTuple(type, createdObjectReferences);
120
+            }
121
+
122
+            Type[] genericArguments = type.GetGenericArguments();
123
+            if (genericArguments.Length == 1)
124
+            {
125
+                if (genericTypeDefinition == typeof(IList<>) ||
126
+                    genericTypeDefinition == typeof(IEnumerable<>) ||
127
+                    genericTypeDefinition == typeof(ICollection<>))
128
+                {
129
+                    Type collectionType = typeof(List<>).MakeGenericType(genericArguments);
130
+                    return GenerateCollection(collectionType, collectionSize, createdObjectReferences);
131
+                }
132
+
133
+                if (genericTypeDefinition == typeof(IQueryable<>))
134
+                {
135
+                    return GenerateQueryable(type, collectionSize, createdObjectReferences);
136
+                }
137
+
138
+                Type closedCollectionType = typeof(ICollection<>).MakeGenericType(genericArguments[0]);
139
+                if (closedCollectionType.IsAssignableFrom(type))
140
+                {
141
+                    return GenerateCollection(type, collectionSize, createdObjectReferences);
142
+                }
143
+            }
144
+
145
+            if (genericArguments.Length == 2)
146
+            {
147
+                if (genericTypeDefinition == typeof(IDictionary<,>))
148
+                {
149
+                    Type dictionaryType = typeof(Dictionary<,>).MakeGenericType(genericArguments);
150
+                    return GenerateDictionary(dictionaryType, collectionSize, createdObjectReferences);
151
+                }
152
+
153
+                Type closedDictionaryType = typeof(IDictionary<,>).MakeGenericType(genericArguments[0], genericArguments[1]);
154
+                if (closedDictionaryType.IsAssignableFrom(type))
155
+                {
156
+                    return GenerateDictionary(type, collectionSize, createdObjectReferences);
157
+                }
158
+            }
159
+
160
+            if (type.IsPublic || type.IsNestedPublic)
161
+            {
162
+                return GenerateComplexObject(type, createdObjectReferences);
163
+            }
164
+
165
+            return null;
166
+        }
167
+
168
+        private static object GenerateTuple(Type type, Dictionary<Type, object> createdObjectReferences)
169
+        {
170
+            Type[] genericArgs = type.GetGenericArguments();
171
+            object[] parameterValues = new object[genericArgs.Length];
172
+            bool failedToCreateTuple = true;
173
+            ObjectGenerator objectGenerator = new ObjectGenerator();
174
+            for (int i = 0; i < genericArgs.Length; i++)
175
+            {
176
+                parameterValues[i] = objectGenerator.GenerateObject(genericArgs[i], createdObjectReferences);
177
+                failedToCreateTuple &= parameterValues[i] == null;
178
+            }
179
+            if (failedToCreateTuple)
180
+            {
181
+                return null;
182
+            }
183
+            object result = Activator.CreateInstance(type, parameterValues);
184
+            return result;
185
+        }
186
+
187
+        private static bool IsTuple(Type genericTypeDefinition)
188
+        {
189
+            return genericTypeDefinition == typeof(Tuple<>) ||
190
+                genericTypeDefinition == typeof(Tuple<,>) ||
191
+                genericTypeDefinition == typeof(Tuple<,,>) ||
192
+                genericTypeDefinition == typeof(Tuple<,,,>) ||
193
+                genericTypeDefinition == typeof(Tuple<,,,,>) ||
194
+                genericTypeDefinition == typeof(Tuple<,,,,,>) ||
195
+                genericTypeDefinition == typeof(Tuple<,,,,,,>) ||
196
+                genericTypeDefinition == typeof(Tuple<,,,,,,,>);
197
+        }
198
+
199
+        private static object GenerateKeyValuePair(Type keyValuePairType, Dictionary<Type, object> createdObjectReferences)
200
+        {
201
+            Type[] genericArgs = keyValuePairType.GetGenericArguments();
202
+            Type typeK = genericArgs[0];
203
+            Type typeV = genericArgs[1];
204
+            ObjectGenerator objectGenerator = new ObjectGenerator();
205
+            object keyObject = objectGenerator.GenerateObject(typeK, createdObjectReferences);
206
+            object valueObject = objectGenerator.GenerateObject(typeV, createdObjectReferences);
207
+            if (keyObject == null && valueObject == null)
208
+            {
209
+                // Failed to create key and values
210
+                return null;
211
+            }
212
+            object result = Activator.CreateInstance(keyValuePairType, keyObject, valueObject);
213
+            return result;
214
+        }
215
+
216
+        private static object GenerateArray(Type arrayType, int size, Dictionary<Type, object> createdObjectReferences)
217
+        {
218
+            Type type = arrayType.GetElementType();
219
+            Array result = Array.CreateInstance(type, size);
220
+            bool areAllElementsNull = true;
221
+            ObjectGenerator objectGenerator = new ObjectGenerator();
222
+            for (int i = 0; i < size; i++)
223
+            {
224
+                object element = objectGenerator.GenerateObject(type, createdObjectReferences);
225
+                result.SetValue(element, i);
226
+                areAllElementsNull &= element == null;
227
+            }
228
+
229
+            if (areAllElementsNull)
230
+            {
231
+                return null;
232
+            }
233
+
234
+            return result;
235
+        }
236
+
237
+        private static object GenerateDictionary(Type dictionaryType, int size, Dictionary<Type, object> createdObjectReferences)
238
+        {
239
+            Type typeK = typeof(object);
240
+            Type typeV = typeof(object);
241
+            if (dictionaryType.IsGenericType)
242
+            {
243
+                Type[] genericArgs = dictionaryType.GetGenericArguments();
244
+                typeK = genericArgs[0];
245
+                typeV = genericArgs[1];
246
+            }
247
+
248
+            object result = Activator.CreateInstance(dictionaryType);
249
+            MethodInfo addMethod = dictionaryType.GetMethod("Add") ?? dictionaryType.GetMethod("TryAdd");
250
+            MethodInfo containsMethod = dictionaryType.GetMethod("Contains") ?? dictionaryType.GetMethod("ContainsKey");
251
+            ObjectGenerator objectGenerator = new ObjectGenerator();
252
+            for (int i = 0; i < size; i++)
253
+            {
254
+                object newKey = objectGenerator.GenerateObject(typeK, createdObjectReferences);
255
+                if (newKey == null)
256
+                {
257
+                    // Cannot generate a valid key
258
+                    return null;
259
+                }
260
+
261
+                bool containsKey = (bool)containsMethod.Invoke(result, new object[] { newKey });
262
+                if (!containsKey)
263
+                {
264
+                    object newValue = objectGenerator.GenerateObject(typeV, createdObjectReferences);
265
+                    addMethod.Invoke(result, new object[] { newKey, newValue });
266
+                }
267
+            }
268
+
269
+            return result;
270
+        }
271
+
272
+        private static object GenerateEnum(Type enumType)
273
+        {
274
+            Array possibleValues = Enum.GetValues(enumType);
275
+            if (possibleValues.Length > 0)
276
+            {
277
+                return possibleValues.GetValue(0);
278
+            }
279
+            return null;
280
+        }
281
+
282
+        private static object GenerateQueryable(Type queryableType, int size, Dictionary<Type, object> createdObjectReferences)
283
+        {
284
+            bool isGeneric = queryableType.IsGenericType;
285
+            object list;
286
+            if (isGeneric)
287
+            {
288
+                Type listType = typeof(List<>).MakeGenericType(queryableType.GetGenericArguments());
289
+                list = GenerateCollection(listType, size, createdObjectReferences);
290
+            }
291
+            else
292
+            {
293
+                list = GenerateArray(typeof(object[]), size, createdObjectReferences);
294
+            }
295
+            if (list == null)
296
+            {
297
+                return null;
298
+            }
299
+            if (isGeneric)
300
+            {
301
+                Type argumentType = typeof(IEnumerable<>).MakeGenericType(queryableType.GetGenericArguments());
302
+                MethodInfo asQueryableMethod = typeof(Queryable).GetMethod("AsQueryable", new[] { argumentType });
303
+                return asQueryableMethod.Invoke(null, new[] { list });
304
+            }
305
+
306
+            return Queryable.AsQueryable((IEnumerable)list);
307
+        }
308
+
309
+        private static object GenerateCollection(Type collectionType, int size, Dictionary<Type, object> createdObjectReferences)
310
+        {
311
+            Type type = collectionType.IsGenericType ?
312
+                collectionType.GetGenericArguments()[0] :
313
+                typeof(object);
314
+            object result = Activator.CreateInstance(collectionType);
315
+            MethodInfo addMethod = collectionType.GetMethod("Add");
316
+            bool areAllElementsNull = true;
317
+            ObjectGenerator objectGenerator = new ObjectGenerator();
318
+            for (int i = 0; i < size; i++)
319
+            {
320
+                object element = objectGenerator.GenerateObject(type, createdObjectReferences);
321
+                addMethod.Invoke(result, new object[] { element });
322
+                areAllElementsNull &= element == null;
323
+            }
324
+
325
+            if (areAllElementsNull)
326
+            {
327
+                return null;
328
+            }
329
+
330
+            return result;
331
+        }
332
+
333
+        private static object GenerateNullable(Type nullableType, Dictionary<Type, object> createdObjectReferences)
334
+        {
335
+            Type type = nullableType.GetGenericArguments()[0];
336
+            ObjectGenerator objectGenerator = new ObjectGenerator();
337
+            return objectGenerator.GenerateObject(type, createdObjectReferences);
338
+        }
339
+
340
+        private static object GenerateComplexObject(Type type, Dictionary<Type, object> createdObjectReferences)
341
+        {
342
+            object result = null;
343
+
344
+            if (createdObjectReferences.TryGetValue(type, out result))
345
+            {
346
+                // The object has been created already, just return it. This will handle the circular reference case.
347
+                return result;
348
+            }
349
+
350
+            if (type.IsValueType)
351
+            {
352
+                result = Activator.CreateInstance(type);
353
+            }
354
+            else
355
+            {
356
+                ConstructorInfo defaultCtor = type.GetConstructor(Type.EmptyTypes);
357
+                if (defaultCtor == null)
358
+                {
359
+                    // Cannot instantiate the type because it doesn't have a default constructor
360
+                    return null;
361
+                }
362
+
363
+                result = defaultCtor.Invoke(new object[0]);
364
+            }
365
+            createdObjectReferences.Add(type, result);
366
+            SetPublicProperties(type, result, createdObjectReferences);
367
+            SetPublicFields(type, result, createdObjectReferences);
368
+            return result;
369
+        }
370
+
371
+        private static void SetPublicProperties(Type type, object obj, Dictionary<Type, object> createdObjectReferences)
372
+        {
373
+            PropertyInfo[] properties = type.GetProperties(BindingFlags.Public | BindingFlags.Instance);
374
+            ObjectGenerator objectGenerator = new ObjectGenerator();
375
+            foreach (PropertyInfo property in properties)
376
+            {
377
+                if (property.CanWrite)
378
+                {
379
+                    object propertyValue = objectGenerator.GenerateObject(property.PropertyType, createdObjectReferences);
380
+                    property.SetValue(obj, propertyValue, null);
381
+                }
382
+            }
383
+        }
384
+
385
+        private static void SetPublicFields(Type type, object obj, Dictionary<Type, object> createdObjectReferences)
386
+        {
387
+            FieldInfo[] fields = type.GetFields(BindingFlags.Public | BindingFlags.Instance);
388
+            ObjectGenerator objectGenerator = new ObjectGenerator();
389
+            foreach (FieldInfo field in fields)
390
+            {
391
+                object fieldValue = objectGenerator.GenerateObject(field.FieldType, createdObjectReferences);
392
+                field.SetValue(obj, fieldValue);
393
+            }
394
+        }
395
+
396
+        private class SimpleTypeObjectGenerator
397
+        {
398
+            private long _index = 0;
399
+            private static readonly Dictionary<Type, Func<long, object>> DefaultGenerators = InitializeGenerators();
400
+
401
+            [SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity", Justification = "These are simple type factories and cannot be split up.")]
402
+            private static Dictionary<Type, Func<long, object>> InitializeGenerators()
403
+            {
404
+                return new Dictionary<Type, Func<long, object>>
405
+                {
406
+                    { typeof(Boolean), index => true },
407
+                    { typeof(Byte), index => (Byte)64 },
408
+                    { typeof(Char), index => (Char)65 },
409
+                    { typeof(DateTime), index => DateTime.Now },
410
+                    { typeof(DateTimeOffset), index => new DateTimeOffset(DateTime.Now) },
411
+                    { typeof(DBNull), index => DBNull.Value },
412
+                    { typeof(Decimal), index => (Decimal)index },
413
+                    { typeof(Double), index => (Double)(index + 0.1) },
414
+                    { typeof(Guid), index => Guid.NewGuid() },
415
+                    { typeof(Int16), index => (Int16)(index % Int16.MaxValue) },
416
+                    { typeof(Int32), index => (Int32)(index % Int32.MaxValue) },
417
+                    { typeof(Int64), index => (Int64)index },
418
+                    { typeof(Object), index => new object() },
419
+                    { typeof(SByte), index => (SByte)64 },
420
+                    { typeof(Single), index => (Single)(index + 0.1) },
421
+                    { 
422
+                        typeof(String), index =>
423
+                        {
424
+                            return String.Format(CultureInfo.CurrentCulture, "sample string {0}", index);
425
+                        }
426
+                    },
427
+                    { 
428
+                        typeof(TimeSpan), index =>
429
+                        {
430
+                            return TimeSpan.FromTicks(1234567);
431
+                        }
432
+                    },
433
+                    { typeof(UInt16), index => (UInt16)(index % UInt16.MaxValue) },
434
+                    { typeof(UInt32), index => (UInt32)(index % UInt32.MaxValue) },
435
+                    { typeof(UInt64), index => (UInt64)index },
436
+                    { 
437
+                        typeof(Uri), index =>
438
+                        {
439
+                            return new Uri(String.Format(CultureInfo.CurrentCulture, "http://webapihelppage{0}.com", index));
440
+                        }
441
+                    },
442
+                };
443
+            }
444
+
445
+            public static bool CanGenerateObject(Type type)
446
+            {
447
+                return DefaultGenerators.ContainsKey(type);
448
+            }
449
+
450
+            public object GenerateObject(Type type)
451
+            {
452
+                return DefaultGenerators[type](++_index);
453
+            }
454
+        }
455
+    }
456
+}

+ 11
- 0
CacheControl-test/Areas/HelpPage/SampleGeneration/SampleDirection.cs Datei anzeigen

@@ -0,0 +1,11 @@
1
+namespace CacheControl_test.Areas.HelpPage
2
+{
3
+    /// <summary>
4
+    /// Indicates whether the sample is used for request or response
5
+    /// </summary>
6
+    public enum SampleDirection
7
+    {
8
+        Request = 0,
9
+        Response
10
+    }
11
+}

+ 37
- 0
CacheControl-test/Areas/HelpPage/SampleGeneration/TextSample.cs Datei anzeigen

@@ -0,0 +1,37 @@
1
+using System;
2
+
3
+namespace CacheControl_test.Areas.HelpPage
4
+{
5
+    /// <summary>
6
+    /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class.
7
+    /// </summary>
8
+    public class TextSample
9
+    {
10
+        public TextSample(string text)
11
+        {
12
+            if (text == null)
13
+            {
14
+                throw new ArgumentNullException("text");
15
+            }
16
+            Text = text;
17
+        }
18
+
19
+        public string Text { get; private set; }
20
+
21
+        public override bool Equals(object obj)
22
+        {
23
+            TextSample other = obj as TextSample;
24
+            return other != null && Text == other.Text;
25
+        }
26
+
27
+        public override int GetHashCode()
28
+        {
29
+            return Text.GetHashCode();
30
+        }
31
+
32
+        public override string ToString()
33
+        {
34
+            return Text;
35
+        }
36
+    }
37
+}

+ 22
- 0
CacheControl-test/Areas/HelpPage/Views/Help/Api.cshtml Datei anzeigen

@@ -0,0 +1,22 @@
1
+@using System.Web.Http
2
+@using CacheControl_test.Areas.HelpPage.Models
3
+@model HelpPageApiModel
4
+
5
+@{
6
+    var description = Model.ApiDescription;
7
+    ViewBag.Title = description.HttpMethod.Method + " " + description.RelativePath;
8
+}
9
+
10
+<link type="text/css" href="~/Areas/HelpPage/HelpPage.css" rel="stylesheet" />
11
+<div id="body" class="help-page">
12
+    <section class="featured">
13
+        <div class="content-wrapper">
14
+            <p>
15
+                @Html.ActionLink("Help Page Home", "Index")
16
+            </p>
17
+        </div>
18
+    </section>
19
+    <section class="content-wrapper main-content clear-fix">
20
+        @Html.DisplayForModel()
21
+    </section>
22
+</div>

+ 41
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/ApiGroup.cshtml Datei anzeigen

@@ -0,0 +1,41 @@
1
+@using System.Web.Http
2
+@using System.Web.Http.Controllers
3
+@using System.Web.Http.Description
4
+@using CacheControl_test.Areas.HelpPage
5
+@using CacheControl_test.Areas.HelpPage.Models
6
+@model IGrouping<HttpControllerDescriptor, ApiDescription>
7
+
8
+@{
9
+    var controllerDocumentation = ViewBag.DocumentationProvider != null ? 
10
+        ViewBag.DocumentationProvider.GetDocumentation(Model.Key) : 
11
+        null;
12
+}
13
+
14
+<h2 id="@Model.Key.ControllerName">@Model.Key.ControllerName</h2>
15
+@if (!String.IsNullOrEmpty(controllerDocumentation))
16
+{
17
+    <p>@controllerDocumentation</p>
18
+}
19
+<table class="help-page-table">
20
+    <thead>
21
+        <tr><th>API</th><th>Description</th></tr>
22
+    </thead>
23
+    <tbody>
24
+    @foreach (var api in Model)
25
+    {
26
+        <tr>
27
+            <td class="api-name"><a href="@Url.Action("Api", "Help", new { apiId = api.GetFriendlyId() })">@api.HttpMethod.Method @api.RelativePath</a></td>
28
+            <td class="api-documentation">
29
+            @if (api.Documentation != null)
30
+            {
31
+                <p>@api.Documentation</p>
32
+            }
33
+            else
34
+            {
35
+                <p>No documentation available.</p>
36
+            }
37
+            </td>
38
+        </tr>
39
+    }
40
+    </tbody>
41
+</table>

+ 6
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/CollectionModelDescription.cshtml Datei anzeigen

@@ -0,0 +1,6 @@
1
+@using CacheControl_test.Areas.HelpPage.ModelDescriptions
2
+@model CollectionModelDescription
3
+@if (Model.ElementDescription is ComplexTypeModelDescription)
4
+{
5
+    @Html.DisplayFor(m => m.ElementDescription)
6
+}

+ 3
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/ComplexTypeModelDescription.cshtml Datei anzeigen

@@ -0,0 +1,3 @@
1
+@using CacheControl_test.Areas.HelpPage.ModelDescriptions
2
+@model ComplexTypeModelDescription
3
+@Html.DisplayFor(m => m.Properties, "Parameters")

+ 4
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/DictionaryModelDescription.cshtml Datei anzeigen

@@ -0,0 +1,4 @@
1
+@using CacheControl_test.Areas.HelpPage.ModelDescriptions
2
+@model DictionaryModelDescription
3
+Dictionary of @Html.DisplayFor(m => Model.KeyModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.KeyModelDescription }) [key]
4
+and @Html.DisplayFor(m => Model.ValueModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ValueModelDescription }) [value]

+ 24
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/EnumTypeModelDescription.cshtml Datei anzeigen

@@ -0,0 +1,24 @@
1
+@using CacheControl_test.Areas.HelpPage.ModelDescriptions
2
+@model EnumTypeModelDescription
3
+
4
+<p>Possible enumeration values:</p>
5
+
6
+<table class="help-page-table">
7
+    <thead>
8
+        <tr><th>Name</th><th>Value</th><th>Description</th></tr>
9
+    </thead>
10
+    <tbody>
11
+        @foreach (EnumValueDescription value in Model.Values)
12
+        {
13
+            <tr>
14
+                <td class="enum-name"><b>@value.Name</b></td>
15
+                <td class="enum-value">
16
+                    <p>@value.Value</p>
17
+                </td>
18
+                <td class="enum-description">
19
+                    <p>@value.Documentation</p>
20
+                </td>
21
+            </tr>
22
+        }
23
+    </tbody>
24
+</table>

+ 67
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/HelpPageApiModel.cshtml Datei anzeigen

@@ -0,0 +1,67 @@
1
+@using System.Web.Http
2
+@using System.Web.Http.Description
3
+@using CacheControl_test.Areas.HelpPage.Models
4
+@using CacheControl_test.Areas.HelpPage.ModelDescriptions
5
+@model HelpPageApiModel
6
+
7
+@{
8
+    ApiDescription description = Model.ApiDescription;
9
+}
10
+<h1>@description.HttpMethod.Method @description.RelativePath</h1>
11
+<div>
12
+    <p>@description.Documentation</p>
13
+
14
+    <h2>Request Information</h2>
15
+
16
+    <h3>URI Parameters</h3>
17
+    @Html.DisplayFor(m => m.UriParameters, "Parameters")
18
+
19
+    <h3>Body Parameters</h3>
20
+
21
+    <p>@Model.RequestDocumentation</p>
22
+
23
+    @if (Model.RequestModelDescription != null)
24
+    {
25
+        @Html.DisplayFor(m => m.RequestModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.RequestModelDescription })
26
+        if (Model.RequestBodyParameters != null)
27
+        {
28
+            @Html.DisplayFor(m => m.RequestBodyParameters, "Parameters")
29
+        }
30
+    }
31
+    else
32
+    {
33
+        <p>None.</p>
34
+    }
35
+
36
+    @if (Model.SampleRequests.Count > 0)
37
+    {
38
+        <h3>Request Formats</h3>
39
+        @Html.DisplayFor(m => m.SampleRequests, "Samples")
40
+    }
41
+
42
+    <h2>Response Information</h2>
43
+
44
+    <h3>Resource Description</h3>
45
+
46
+    <p>@description.ResponseDescription.Documentation</p>
47
+
48
+    @if (Model.ResourceDescription != null)
49
+    {
50
+        @Html.DisplayFor(m => m.ResourceDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ResourceDescription })
51
+        if (Model.ResourceProperties != null)
52
+        {
53
+            @Html.DisplayFor(m => m.ResourceProperties, "Parameters")
54
+        }
55
+    }
56
+    else
57
+    {
58
+        <p>None.</p>
59
+    }
60
+
61
+    @if (Model.SampleResponses.Count > 0)
62
+    {
63
+        <h3>Response Formats</h3>
64
+        @Html.DisplayFor(m => m.SampleResponses, "Samples")
65
+    }
66
+
67
+</div>

+ 4
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml Datei anzeigen

@@ -0,0 +1,4 @@
1
+@using CacheControl_test.Areas.HelpPage
2
+@model ImageSample
3
+
4
+<img src="@Model.Src" />

+ 13
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml Datei anzeigen

@@ -0,0 +1,13 @@
1
+@using CacheControl_test.Areas.HelpPage
2
+@model InvalidSample
3
+
4
+@if (HttpContext.Current.IsDebuggingEnabled)
5
+{
6
+    <div class="warning-message-container">
7
+        <p>@Model.ErrorMessage</p>
8
+    </div>
9
+}
10
+else
11
+{
12
+    <p>Sample not available.</p>
13
+}

+ 4
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/KeyValuePairModelDescription.cshtml Datei anzeigen

@@ -0,0 +1,4 @@
1
+@using CacheControl_test.Areas.HelpPage.ModelDescriptions
2
+@model KeyValuePairModelDescription
3
+Pair of @Html.DisplayFor(m => Model.KeyModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.KeyModelDescription }) [key]
4
+and @Html.DisplayFor(m => Model.ValueModelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = Model.ValueModelDescription }) [value]

+ 26
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/ModelDescriptionLink.cshtml Datei anzeigen

@@ -0,0 +1,26 @@
1
+@using CacheControl_test.Areas.HelpPage.ModelDescriptions
2
+@model Type
3
+@{
4
+    ModelDescription modelDescription = ViewBag.modelDescription;
5
+    if (modelDescription is ComplexTypeModelDescription || modelDescription is EnumTypeModelDescription)
6
+    {
7
+        if (Model == typeof(Object))
8
+        {
9
+            @:Object
10
+        }
11
+        else
12
+        {
13
+            @Html.ActionLink(modelDescription.Name, "ResourceModel", "Help", new { modelName = modelDescription.Name }, null)
14
+        }
15
+    }
16
+    else if (modelDescription is CollectionModelDescription)
17
+    {
18
+        var collectionDescription = modelDescription as CollectionModelDescription;
19
+        var elementDescription = collectionDescription.ElementDescription;
20
+        @:Collection of @Html.DisplayFor(m => elementDescription.ModelType, "ModelDescriptionLink", new { modelDescription = elementDescription })
21
+    }
22
+    else
23
+    {
24
+        @Html.DisplayFor(m => modelDescription)
25
+    }
26
+}

+ 48
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml Datei anzeigen

@@ -0,0 +1,48 @@
1
+@using System.Collections.Generic
2
+@using System.Collections.ObjectModel
3
+@using System.Web.Http.Description
4
+@using System.Threading
5
+@using CacheControl_test.Areas.HelpPage.ModelDescriptions
6
+@model IList<ParameterDescription>
7
+
8
+@if (Model.Count > 0)
9
+{
10
+    <table class="help-page-table">
11
+        <thead>
12
+            <tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
13
+        </thead>
14
+        <tbody>
15
+            @foreach (ParameterDescription parameter in Model)
16
+            {
17
+                ModelDescription modelDescription = parameter.TypeDescription;
18
+                <tr>
19
+                    <td class="parameter-name">@parameter.Name</td>
20
+                    <td class="parameter-documentation">
21
+                        <p>@parameter.Documentation</p>
22
+                    </td>
23
+                    <td class="parameter-type">
24
+                        @Html.DisplayFor(m => modelDescription.ModelType, "ModelDescriptionLink", new { modelDescription = modelDescription })
25
+                    </td>
26
+                    <td class="parameter-annotations">
27
+                        @if (parameter.Annotations.Count > 0)
28
+                        {
29
+                            foreach (var annotation in parameter.Annotations)
30
+                            {
31
+                                <p>@annotation.Documentation</p>
32
+                            }
33
+                        }
34
+                        else
35
+                        {
36
+                            <p>None.</p>
37
+                        }
38
+                    </td>
39
+                </tr>
40
+            }
41
+        </tbody>
42
+    </table>
43
+}
44
+else
45
+{
46
+    <p>None.</p>
47
+}
48
+

+ 30
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/Samples.cshtml Datei anzeigen

@@ -0,0 +1,30 @@
1
+@using System.Net.Http.Headers
2
+@model Dictionary<MediaTypeHeaderValue, object>
3
+
4
+@{
5
+    // Group the samples into a single tab if they are the same.
6
+    Dictionary<string, object> samples = Model.GroupBy(pair => pair.Value).ToDictionary(
7
+        pair => String.Join(", ", pair.Select(m => m.Key.ToString()).ToArray()), 
8
+        pair => pair.Key);
9
+    var mediaTypes = samples.Keys;
10
+}
11
+<div>
12
+    @foreach (var mediaType in mediaTypes)
13
+    {
14
+        <h4 class="sample-header">@mediaType</h4>
15
+        <div class="sample-content">
16
+            <span><b>Sample:</b></span>
17
+            @{
18
+                var sample = samples[mediaType];
19
+                if (sample == null)
20
+                {
21
+                    <p>Sample not available.</p>
22
+                }
23
+                else
24
+                {
25
+                    @Html.DisplayFor(s => sample);
26
+                }
27
+            }
28
+        </div>
29
+    }
30
+</div>

+ 3
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/SimpleTypeModelDescription.cshtml Datei anzeigen

@@ -0,0 +1,3 @@
1
+@using CacheControl_test.Areas.HelpPage.ModelDescriptions
2
+@model SimpleTypeModelDescription
3
+@Model.Documentation

+ 6
- 0
CacheControl-test/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml Datei anzeigen

@@ -0,0 +1,6 @@
1
+@using CacheControl_test.Areas.HelpPage
2
+@model TextSample
3
+
4
+<pre class="wrapped">
5
+@Model.Text
6
+</pre>

+ 38
- 0
CacheControl-test/Areas/HelpPage/Views/Help/Index.cshtml Datei anzeigen

@@ -0,0 +1,38 @@
1
+@using System.Web.Http
2
+@using System.Web.Http.Controllers
3
+@using System.Web.Http.Description
4
+@using System.Collections.ObjectModel
5
+@using CacheControl_test.Areas.HelpPage.Models
6
+@model Collection<ApiDescription>
7
+
8
+@{
9
+    ViewBag.Title = "ASP.NET Web API Help Page";
10
+
11
+    // Group APIs by controller
12
+    ILookup<HttpControllerDescriptor, ApiDescription> apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor);
13
+}
14
+
15
+<link type="text/css" href="~/Areas/HelpPage/HelpPage.css" rel="stylesheet" />
16
+<header class="help-page">
17
+    <div class="content-wrapper">
18
+        <div class="float-left">
19
+            <h1>@ViewBag.Title</h1>
20
+        </div>
21
+    </div>
22
+</header>
23
+<div id="body" class="help-page">
24
+    <section class="featured">
25
+        <div class="content-wrapper">
26
+            <h2>Introduction</h2>
27
+            <p>
28
+                Provide a general description of your APIs here.
29
+            </p>
30
+        </div>
31
+    </section>
32
+    <section class="content-wrapper main-content clear-fix">
33
+        @foreach (var group in apiGroups)
34
+        {
35
+            @Html.DisplayFor(m => group, "ApiGroup")
36
+        }
37
+    </section>
38
+</div>

+ 19
- 0
CacheControl-test/Areas/HelpPage/Views/Help/ResourceModel.cshtml Datei anzeigen

@@ -0,0 +1,19 @@
1
+@using System.Web.Http
2
+@using CacheControl_test.Areas.HelpPage.ModelDescriptions
3
+@model ModelDescription
4
+
5
+<link type="text/css" href="~/Areas/HelpPage/HelpPage.css" rel="stylesheet" />
6
+<div id="body" class="help-page">
7
+    <section class="featured">
8
+        <div class="content-wrapper">
9
+            <p>
10
+                @Html.ActionLink("Help Page Home", "Index")
11
+            </p>
12
+        </div>
13
+    </section>
14
+    <h1>@Model.Name</h1>
15
+    <p>@Model.Documentation</p>
16
+    <section class="content-wrapper main-content clear-fix">
17
+        @Html.DisplayFor(m => Model)
18
+    </section>
19
+</div>

+ 12
- 0
CacheControl-test/Areas/HelpPage/Views/Shared/_Layout.cshtml Datei anzeigen

@@ -0,0 +1,12 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+<head>
4
+    <meta charset="utf-8" />
5
+    <meta name="viewport" content="width=device-width" />
6
+    <title>@ViewBag.Title</title>
7
+    @RenderSection("scripts", required: false)
8
+</head>
9
+<body>
10
+    @RenderBody()
11
+</body>
12
+</html>

+ 41
- 0
CacheControl-test/Areas/HelpPage/Views/Web.config Datei anzeigen

@@ -0,0 +1,41 @@
1
+<?xml version="1.0"?>
2
+
3
+<configuration>
4
+  <configSections>
5
+    <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
6
+      <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
7
+      <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
8
+    </sectionGroup>
9
+  </configSections>
10
+
11
+  <system.web.webPages.razor>
12
+    <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
13
+    <pages pageBaseType="System.Web.Mvc.WebViewPage">
14
+      <namespaces>
15
+        <add namespace="System.Web.Mvc" />
16
+        <add namespace="System.Web.Mvc.Ajax" />
17
+        <add namespace="System.Web.Mvc.Html" />
18
+        <add namespace="System.Web.Routing" />
19
+      </namespaces>
20
+    </pages>
21
+  </system.web.webPages.razor>
22
+
23
+  <appSettings>
24
+    <add key="webpages:Enabled" value="false" />
25
+  </appSettings>
26
+
27
+  <system.web>
28
+    <compilation debug="true">
29
+      <assemblies>
30
+        <add assembly="System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
31
+      </assemblies>
32
+    </compilation>
33
+  </system.web>
34
+
35
+  <system.webServer>
36
+    <handlers>
37
+      <remove name="BlockViewHandler"/>
38
+      <add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
39
+    </handlers>
40
+  </system.webServer>
41
+</configuration>

+ 4
- 0
CacheControl-test/Areas/HelpPage/Views/_ViewStart.cshtml Datei anzeigen

@@ -0,0 +1,4 @@
1
+@{
2
+    // Change the Layout path below to blend the look and feel of the help page with your existing web pages.
3
+    Layout = "~/Areas/HelpPage/Views/Shared/_Layout.cshtml";
4
+}

+ 161
- 0
CacheControl-test/Areas/HelpPage/XmlDocumentationProvider.cs Datei anzeigen

@@ -0,0 +1,161 @@
1
+using System;
2
+using System.Globalization;
3
+using System.Linq;
4
+using System.Reflection;
5
+using System.Web.Http.Controllers;
6
+using System.Web.Http.Description;
7
+using System.Xml.XPath;
8
+using CacheControl_test.Areas.HelpPage.ModelDescriptions;
9
+
10
+namespace CacheControl_test.Areas.HelpPage
11
+{
12
+    /// <summary>
13
+    /// A custom <see cref="IDocumentationProvider"/> that reads the API documentation from an XML documentation file.
14
+    /// </summary>
15
+    public class XmlDocumentationProvider : IDocumentationProvider, IModelDocumentationProvider
16
+    {
17
+        private XPathNavigator _documentNavigator;
18
+        private const string TypeExpression = "/doc/members/member[@name='T:{0}']";
19
+        private const string MethodExpression = "/doc/members/member[@name='M:{0}']";
20
+        private const string PropertyExpression = "/doc/members/member[@name='P:{0}']";
21
+        private const string FieldExpression = "/doc/members/member[@name='F:{0}']";
22
+        private const string ParameterExpression = "param[@name='{0}']";
23
+
24
+        /// <summary>
25
+        /// Initializes a new instance of the <see cref="XmlDocumentationProvider"/> class.
26
+        /// </summary>
27
+        /// <param name="documentPath">The physical path to XML document.</param>
28
+        public XmlDocumentationProvider(string documentPath)
29
+        {
30
+            if (documentPath == null)
31
+            {
32
+                throw new ArgumentNullException("documentPath");
33
+            }
34
+            XPathDocument xpath = new XPathDocument(documentPath);
35
+            _documentNavigator = xpath.CreateNavigator();
36
+        }
37
+
38
+        public string GetDocumentation(HttpControllerDescriptor controllerDescriptor)
39
+        {
40
+            XPathNavigator typeNode = GetTypeNode(controllerDescriptor.ControllerType);
41
+            return GetTagValue(typeNode, "summary");
42
+        }
43
+
44
+        public virtual string GetDocumentation(HttpActionDescriptor actionDescriptor)
45
+        {
46
+            XPathNavigator methodNode = GetMethodNode(actionDescriptor);
47
+            return GetTagValue(methodNode, "summary");
48
+        }
49
+
50
+        public virtual string GetDocumentation(HttpParameterDescriptor parameterDescriptor)
51
+        {
52
+            ReflectedHttpParameterDescriptor reflectedParameterDescriptor = parameterDescriptor as ReflectedHttpParameterDescriptor;
53
+            if (reflectedParameterDescriptor != null)
54
+            {
55
+                XPathNavigator methodNode = GetMethodNode(reflectedParameterDescriptor.ActionDescriptor);
56
+                if (methodNode != null)
57
+                {
58
+                    string parameterName = reflectedParameterDescriptor.ParameterInfo.Name;
59
+                    XPathNavigator parameterNode = methodNode.SelectSingleNode(String.Format(CultureInfo.InvariantCulture, ParameterExpression, parameterName));
60
+                    if (parameterNode != null)
61
+                    {
62
+                        return parameterNode.Value.Trim();
63
+                    }
64
+                }
65
+            }
66
+
67
+            return null;
68
+        }
69
+
70
+        public string GetResponseDocumentation(HttpActionDescriptor actionDescriptor)
71
+        {
72
+            XPathNavigator methodNode = GetMethodNode(actionDescriptor);
73
+            return GetTagValue(methodNode, "returns");
74
+        }
75
+
76
+        public string GetDocumentation(MemberInfo member)
77
+        {
78
+            string memberName = String.Format(CultureInfo.InvariantCulture, "{0}.{1}", GetTypeName(member.DeclaringType), member.Name);
79
+            string expression = member.MemberType == MemberTypes.Field ? FieldExpression : PropertyExpression;
80
+            string selectExpression = String.Format(CultureInfo.InvariantCulture, expression, memberName);
81
+            XPathNavigator propertyNode = _documentNavigator.SelectSingleNode(selectExpression);
82
+            return GetTagValue(propertyNode, "summary");
83
+        }
84
+
85
+        public string GetDocumentation(Type type)
86
+        {
87
+            XPathNavigator typeNode = GetTypeNode(type);
88
+            return GetTagValue(typeNode, "summary");
89
+        }
90
+
91
+        private XPathNavigator GetMethodNode(HttpActionDescriptor actionDescriptor)
92
+        {
93
+            ReflectedHttpActionDescriptor reflectedActionDescriptor = actionDescriptor as ReflectedHttpActionDescriptor;
94
+            if (reflectedActionDescriptor != null)
95
+            {
96
+                string selectExpression = String.Format(CultureInfo.InvariantCulture, MethodExpression, GetMemberName(reflectedActionDescriptor.MethodInfo));
97
+                return _documentNavigator.SelectSingleNode(selectExpression);
98
+            }
99
+
100
+            return null;
101
+        }
102
+
103
+        private static string GetMemberName(MethodInfo method)
104
+        {
105
+            string name = String.Format(CultureInfo.InvariantCulture, "{0}.{1}", GetTypeName(method.DeclaringType), method.Name);
106
+            ParameterInfo[] parameters = method.GetParameters();
107
+            if (parameters.Length != 0)
108
+            {
109
+                string[] parameterTypeNames = parameters.Select(param => GetTypeName(param.ParameterType)).ToArray();
110
+                name += String.Format(CultureInfo.InvariantCulture, "({0})", String.Join(",", parameterTypeNames));
111
+            }
112
+
113
+            return name;
114
+        }
115
+
116
+        private static string GetTagValue(XPathNavigator parentNode, string tagName)
117
+        {
118
+            if (parentNode != null)
119
+            {
120
+                XPathNavigator node = parentNode.SelectSingleNode(tagName);
121
+                if (node != null)
122
+                {
123
+                    return node.Value.Trim();
124
+                }
125
+            }
126
+
127
+            return null;
128
+        }
129
+
130
+        private XPathNavigator GetTypeNode(Type type)
131
+        {
132
+            string controllerTypeName = GetTypeName(type);
133
+            string selectExpression = String.Format(CultureInfo.InvariantCulture, TypeExpression, controllerTypeName);
134
+            return _documentNavigator.SelectSingleNode(selectExpression);
135
+        }
136
+
137
+        private static string GetTypeName(Type type)
138
+        {
139
+            string name = type.FullName;
140
+            if (type.IsGenericType)
141
+            {
142
+                // Format the generic type name to something like: Generic{System.Int32,System.String}
143
+                Type genericType = type.GetGenericTypeDefinition();
144
+                Type[] genericArguments = type.GetGenericArguments();
145
+                string genericTypeName = genericType.FullName;
146
+
147
+                // Trim the generic parameter counts from the name
148
+                genericTypeName = genericTypeName.Substring(0, genericTypeName.IndexOf('`'));
149
+                string[] argumentTypeNames = genericArguments.Select(t => GetTypeName(t)).ToArray();
150
+                name = String.Format(CultureInfo.InvariantCulture, "{0}{{{1}}}", genericTypeName, String.Join(",", argumentTypeNames));
151
+            }
152
+            if (type.IsNested)
153
+            {
154
+                // Changing the nested type name from OuterType+InnerType to OuterType.InnerType to match the XML documentation syntax.
155
+                name = name.Replace("+", ".");
156
+            }
157
+
158
+            return name;
159
+        }
160
+    }
161
+}

+ 271
- 0
CacheControl-test/CacheControl-test.csproj Datei anzeigen

@@ -0,0 +1,271 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4
+  <PropertyGroup>
5
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
+    <ProductVersion>
8
+    </ProductVersion>
9
+    <SchemaVersion>2.0</SchemaVersion>
10
+    <ProjectGuid>{87621742-F6EE-457A-9ED4-6C450D462B3B}</ProjectGuid>
11
+    <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
12
+    <OutputType>Library</OutputType>
13
+    <AppDesignerFolder>Properties</AppDesignerFolder>
14
+    <RootNamespace>CacheControl_test</RootNamespace>
15
+    <AssemblyName>CacheControl-test</AssemblyName>
16
+    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
17
+    <MvcBuildViews>false</MvcBuildViews>
18
+    <UseIISExpress>true</UseIISExpress>
19
+    <IISExpressSSLPort />
20
+    <IISExpressAnonymousAuthentication />
21
+    <IISExpressWindowsAuthentication />
22
+    <IISExpressUseClassicPipelineMode />
23
+  </PropertyGroup>
24
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
25
+    <DebugSymbols>true</DebugSymbols>
26
+    <DebugType>full</DebugType>
27
+    <Optimize>false</Optimize>
28
+    <OutputPath>bin\</OutputPath>
29
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
30
+    <ErrorReport>prompt</ErrorReport>
31
+    <WarningLevel>4</WarningLevel>
32
+  </PropertyGroup>
33
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
34
+    <DebugType>pdbonly</DebugType>
35
+    <Optimize>true</Optimize>
36
+    <OutputPath>bin\</OutputPath>
37
+    <DefineConstants>TRACE</DefineConstants>
38
+    <ErrorReport>prompt</ErrorReport>
39
+    <WarningLevel>4</WarningLevel>
40
+  </PropertyGroup>
41
+  <ItemGroup>
42
+    <Reference Include="Antlr3.Runtime, Version=3.5.0.2, Culture=neutral, PublicKeyToken=eb42632606e9261f, processorArchitecture=MSIL">
43
+      <SpecificVersion>False</SpecificVersion>
44
+      <HintPath>..\packages\Antlr.3.5.0.2\lib\Antlr3.Runtime.dll</HintPath>
45
+    </Reference>
46
+    <Reference Include="Microsoft.CSharp" />
47
+    <Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
48
+      <SpecificVersion>False</SpecificVersion>
49
+      <HintPath>..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
50
+    </Reference>
51
+    <Reference Include="System" />
52
+    <Reference Include="System.Data" />
53
+    <Reference Include="System.Data.Entity" />
54
+    <Reference Include="System.Drawing" />
55
+    <Reference Include="System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
56
+      <SpecificVersion>False</SpecificVersion>
57
+      <HintPath>..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll</HintPath>
58
+    </Reference>
59
+    <Reference Include="System.Runtime.Serialization" />
60
+    <Reference Include="System.Web.Entity" />
61
+    <Reference Include="System.Web.ApplicationServices" />
62
+    <Reference Include="System.ComponentModel.DataAnnotations" />
63
+    <Reference Include="System.Core" />
64
+    <Reference Include="System.Data.DataSetExtensions" />
65
+    <Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
66
+      <SpecificVersion>False</SpecificVersion>
67
+      <HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll</HintPath>
68
+    </Reference>
69
+    <Reference Include="System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
70
+      <SpecificVersion>False</SpecificVersion>
71
+      <HintPath>..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll</HintPath>
72
+    </Reference>
73
+    <Reference Include="System.Web.Http.WebHost, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
74
+      <SpecificVersion>False</SpecificVersion>
75
+      <HintPath>..\packages\Microsoft.AspNet.WebApi.WebHost.5.2.3\lib\net45\System.Web.Http.WebHost.dll</HintPath>
76
+    </Reference>
77
+    <Reference Include="System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
78
+      <SpecificVersion>False</SpecificVersion>
79
+      <HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll</HintPath>
80
+    </Reference>
81
+    <Reference Include="System.Web.Optimization, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
82
+      <SpecificVersion>False</SpecificVersion>
83
+      <HintPath>..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll</HintPath>
84
+    </Reference>
85
+    <Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
86
+      <SpecificVersion>False</SpecificVersion>
87
+      <HintPath>..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll</HintPath>
88
+    </Reference>
89
+    <Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
90
+      <SpecificVersion>False</SpecificVersion>
91
+      <HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll</HintPath>
92
+    </Reference>
93
+    <Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
94
+      <SpecificVersion>False</SpecificVersion>
95
+      <HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
96
+    </Reference>
97
+    <Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
98
+      <SpecificVersion>False</SpecificVersion>
99
+      <HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
100
+    </Reference>
101
+    <Reference Include="System.Xml.Linq" />
102
+    <Reference Include="System.Web" />
103
+    <Reference Include="System.Web.Abstractions" />
104
+    <Reference Include="System.Web.Routing" />
105
+    <Reference Include="System.Xml" />
106
+    <Reference Include="System.Configuration" />
107
+    <Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
108
+      <Private>True</Private>
109
+      <HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
110
+    </Reference>
111
+    <Reference Include="System.Net.Http">
112
+    </Reference>
113
+    <Reference Include="System.Net.Http.WebRequest">
114
+    </Reference>
115
+    <Reference Include="WebGrease, Version=1.6.5135.21930, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
116
+      <SpecificVersion>False</SpecificVersion>
117
+      <HintPath>..\packages\WebGrease.1.6.0\lib\WebGrease.dll</HintPath>
118
+    </Reference>
119
+  </ItemGroup>
120
+  <ItemGroup>
121
+    <Folder Include="App_Data\" />
122
+    <Folder Include="Models\" />
123
+  </ItemGroup>
124
+  <ItemGroup>
125
+    <Compile Include="App_Start\BundleConfig.cs" />
126
+    <Compile Include="App_Start\FilterConfig.cs" />
127
+    <Compile Include="App_Start\RouteConfig.cs" />
128
+    <Compile Include="App_Start\WebApiConfig.cs" />
129
+    <Compile Include="Areas\HelpPage\ApiDescriptionExtensions.cs" />
130
+    <Compile Include="Areas\HelpPage\App_Start\HelpPageConfig.cs" />
131
+    <Compile Include="Areas\HelpPage\Controllers\HelpController.cs" />
132
+    <Compile Include="Areas\HelpPage\HelpPageAreaRegistration.cs" />
133
+    <Compile Include="Areas\HelpPage\HelpPageConfigurationExtensions.cs" />
134
+    <Compile Include="Areas\HelpPage\ModelDescriptions\CollectionModelDescription.cs" />
135
+    <Compile Include="Areas\HelpPage\ModelDescriptions\ComplexTypeModelDescription.cs" />
136
+    <Compile Include="Areas\HelpPage\ModelDescriptions\DictionaryModelDescription.cs" />
137
+    <Compile Include="Areas\HelpPage\ModelDescriptions\EnumTypeModelDescription.cs" />
138
+    <Compile Include="Areas\HelpPage\ModelDescriptions\EnumValueDescription.cs" />
139
+    <Compile Include="Areas\HelpPage\ModelDescriptions\IModelDocumentationProvider.cs" />
140
+    <Compile Include="Areas\HelpPage\ModelDescriptions\KeyValuePairModelDescription.cs" />
141
+    <Compile Include="Areas\HelpPage\ModelDescriptions\ModelDescription.cs" />
142
+    <Compile Include="Areas\HelpPage\ModelDescriptions\ModelDescriptionGenerator.cs" />
143
+    <Compile Include="Areas\HelpPage\ModelDescriptions\ModelNameAttribute.cs" />
144
+    <Compile Include="Areas\HelpPage\ModelDescriptions\ModelNameHelper.cs" />
145
+    <Compile Include="Areas\HelpPage\ModelDescriptions\ParameterAnnotation.cs" />
146
+    <Compile Include="Areas\HelpPage\ModelDescriptions\ParameterDescription.cs" />
147
+    <Compile Include="Areas\HelpPage\ModelDescriptions\SimpleTypeModelDescription.cs" />
148
+    <Compile Include="Areas\HelpPage\Models\HelpPageApiModel.cs" />
149
+    <Compile Include="Areas\HelpPage\SampleGeneration\HelpPageSampleGenerator.cs" />
150
+    <Compile Include="Areas\HelpPage\SampleGeneration\HelpPageSampleKey.cs" />
151
+    <Compile Include="Areas\HelpPage\SampleGeneration\ImageSample.cs" />
152
+    <Compile Include="Areas\HelpPage\SampleGeneration\InvalidSample.cs" />
153
+    <Compile Include="Areas\HelpPage\SampleGeneration\ObjectGenerator.cs" />
154
+    <Compile Include="Areas\HelpPage\SampleGeneration\SampleDirection.cs" />
155
+    <Compile Include="Areas\HelpPage\SampleGeneration\TextSample.cs" />
156
+    <Compile Include="Areas\HelpPage\XmlDocumentationProvider.cs" />
157
+    <Compile Include="Controllers\HomeController.cs" />
158
+    <Compile Include="Controllers\ValuesController.cs" />
159
+    <Compile Include="Global.asax.cs">
160
+      <DependentUpon>Global.asax</DependentUpon>
161
+    </Compile>
162
+    <Compile Include="Properties\AssemblyInfo.cs" />
163
+  </ItemGroup>
164
+  <ItemGroup>
165
+    <Content Include="Areas\HelpPage\HelpPage.css" />
166
+    <Content Include="Content\bootstrap-theme.css" />
167
+    <Content Include="Content\bootstrap-theme.min.css" />
168
+    <Content Include="Content\bootstrap.css" />
169
+    <Content Include="Content\bootstrap.min.css" />
170
+    <Content Include="favicon.ico" />
171
+    <Content Include="fonts\glyphicons-halflings-regular.svg" />
172
+    <Content Include="Global.asax" />
173
+    <Content Include="fonts\glyphicons-halflings-regular.woff2" />
174
+    <Content Include="fonts\glyphicons-halflings-regular.woff" />
175
+    <Content Include="fonts\glyphicons-halflings-regular.ttf" />
176
+    <Content Include="fonts\glyphicons-halflings-regular.eot" />
177
+    <Content Include="Content\bootstrap-theme.css.map" />
178
+    <Content Include="Content\bootstrap.css.map" />
179
+    <Content Include="Icon.png" />
180
+    <Content Include="Scripts\bootstrap.js" />
181
+    <Content Include="Scripts\bootstrap.min.js" />
182
+    <Content Include="Areas\HelpPage\Views\Web.config" />
183
+    <Content Include="Areas\HelpPage\Views\Shared\_Layout.cshtml" />
184
+    <Content Include="Areas\HelpPage\Views\Help\ResourceModel.cshtml" />
185
+    <Content Include="Areas\HelpPage\Views\Help\Index.cshtml" />
186
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\TextSample.cshtml" />
187
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\SimpleTypeModelDescription.cshtml" />
188
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\Samples.cshtml" />
189
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\Parameters.cshtml" />
190
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\ModelDescriptionLink.cshtml" />
191
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\KeyValuePairModelDescription.cshtml" />
192
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\InvalidSample.cshtml" />
193
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\ImageSample.cshtml" />
194
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\HelpPageApiModel.cshtml" />
195
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\EnumTypeModelDescription.cshtml" />
196
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\DictionaryModelDescription.cshtml" />
197
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\ComplexTypeModelDescription.cshtml" />
198
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\CollectionModelDescription.cshtml" />
199
+    <Content Include="Areas\HelpPage\Views\Help\DisplayTemplates\ApiGroup.cshtml" />
200
+    <Content Include="Areas\HelpPage\Views\Help\Api.cshtml" />
201
+    <None Include="Scripts\jquery-2.1.4.intellisense.js" />
202
+    <Content Include="Scripts\jquery-2.1.4.js" />
203
+    <Content Include="Scripts\jquery-2.1.4.min.js" />
204
+    <Content Include="Scripts\modernizr-2.8.3.js" />
205
+    <Content Include="Scripts\npm.js" />
206
+    <Content Include="Scripts\respond.js" />
207
+    <Content Include="Scripts\respond.matchmedia.addListener.js" />
208
+    <Content Include="Scripts\respond.matchmedia.addListener.min.js" />
209
+    <Content Include="Scripts\respond.min.js" />
210
+    <Content Include="Web.config" />
211
+    <Content Include="Web.Debug.config">
212
+      <DependentUpon>Web.config</DependentUpon>
213
+    </Content>
214
+    <Content Include="Web.Release.config">
215
+      <DependentUpon>Web.config</DependentUpon>
216
+    </Content>
217
+    <Content Include="Areas\HelpPage\Views\_ViewStart.cshtml" />
218
+    <Content Include="Content\Site.css" />
219
+    <Content Include="Scripts\_references.js" />
220
+    <Content Include="Views\Web.config" />
221
+    <Content Include="Views\_ViewStart.cshtml" />
222
+    <Content Include="Views\Home\Index.cshtml" />
223
+    <Content Include="Views\Shared\Error.cshtml" />
224
+    <Content Include="Views\Shared\_Layout.cshtml" />
225
+    <Content Include="Scripts\jquery-2.1.4.min.map" />
226
+  </ItemGroup>
227
+  <ItemGroup>
228
+    <ProjectReference Include="..\CacheControl\CacheControl.csproj">
229
+      <Project>{BA63D177-BE9E-41E0-89F5-3D134A26A604}</Project>
230
+      <Name>CacheControl</Name>
231
+    </ProjectReference>
232
+  </ItemGroup>
233
+  <ItemGroup>
234
+    <Content Include="packages.config" />
235
+    <None Include="Project_Readme.html" />
236
+  </ItemGroup>
237
+  <PropertyGroup>
238
+    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
239
+    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
240
+  </PropertyGroup>
241
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
242
+  <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
243
+  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
244
+  <Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
245
+    <AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
246
+  </Target>
247
+  <ProjectExtensions>
248
+    <VisualStudio>
249
+      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
250
+        <WebProjectProperties>
251
+          <UseIIS>True</UseIIS>
252
+          <AutoAssignPort>True</AutoAssignPort>
253
+          <DevelopmentServerPort>52045</DevelopmentServerPort>
254
+          <DevelopmentServerVPath>/</DevelopmentServerVPath>
255
+          <IISUrl>http://localhost:52045/</IISUrl>
256
+          <NTLMAuthentication>False</NTLMAuthentication>
257
+          <UseCustomServer>False</UseCustomServer>
258
+          <CustomServerUrl>
259
+          </CustomServerUrl>
260
+          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
261
+        </WebProjectProperties>
262
+      </FlavorProperties>
263
+    </VisualStudio>
264
+  </ProjectExtensions>
265
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
266
+       Other similar extension points exist, see Microsoft.Common.targets.
267
+  <Target Name="BeforeBuild">
268
+  </Target>
269
+  <Target Name="AfterBuild">
270
+  </Target> -->
271
+</Project>

+ 42
- 0
CacheControl-test/Content/Site.css Datei anzeigen

@@ -0,0 +1,42 @@
1
+body {
2
+    padding-top: 50px;
3
+    padding-bottom: 20px;
4
+}
5
+
6
+/* Set padding to keep content from hitting the edges */
7
+.body-content {
8
+    padding-left: 15px;
9
+    padding-right: 15px;
10
+}
11
+
12
+/* Set width on the form input elements since they're 100% wide by default */
13
+input,
14
+select,
15
+textarea {
16
+    max-width: 280px;
17
+}
18
+
19
+/* styles for validation helpers */
20
+.field-validation-error {
21
+    color: #b94a48;
22
+}
23
+
24
+.field-validation-valid {
25
+    display: none;
26
+}
27
+
28
+input.input-validation-error {
29
+    border: 1px solid #b94a48;
30
+}
31
+
32
+input[type="checkbox"].input-validation-error {
33
+    border: 0 none;
34
+}
35
+
36
+.validation-summary-errors {
37
+    color: #b94a48;
38
+}
39
+
40
+.validation-summary-valid {
41
+    display: none;
42
+}

+ 476
- 0
CacheControl-test/Content/bootstrap-theme.css Datei anzeigen

@@ -0,0 +1,476 @@
1
+/*!
2
+ * Bootstrap v3.3.4 (http://getbootstrap.com)
3
+ * Copyright 2011-2015 Twitter, Inc.
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
+ */
6
+
7
+.btn-default,
8
+.btn-primary,
9
+.btn-success,
10
+.btn-info,
11
+.btn-warning,
12
+.btn-danger {
13
+  text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
14
+  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
15
+          box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
16
+}
17
+.btn-default:active,
18
+.btn-primary:active,
19
+.btn-success:active,
20
+.btn-info:active,
21
+.btn-warning:active,
22
+.btn-danger:active,
23
+.btn-default.active,
24
+.btn-primary.active,
25
+.btn-success.active,
26
+.btn-info.active,
27
+.btn-warning.active,
28
+.btn-danger.active {
29
+  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
30
+          box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
31
+}
32
+.btn-default .badge,
33
+.btn-primary .badge,
34
+.btn-success .badge,
35
+.btn-info .badge,
36
+.btn-warning .badge,
37
+.btn-danger .badge {
38
+  text-shadow: none;
39
+}
40
+.btn:active,
41
+.btn.active {
42
+  background-image: none;
43
+}
44
+.btn-default {
45
+  text-shadow: 0 1px 0 #fff;
46
+  background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%);
47
+  background-image:      -o-linear-gradient(top, #fff 0%, #e0e0e0 100%);
48
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0));
49
+  background-image:         linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);
50
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);
51
+  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
52
+  background-repeat: repeat-x;
53
+  border-color: #dbdbdb;
54
+  border-color: #ccc;
55
+}
56
+.btn-default:hover,
57
+.btn-default:focus {
58
+  background-color: #e0e0e0;
59
+  background-position: 0 -15px;
60
+}
61
+.btn-default:active,
62
+.btn-default.active {
63
+  background-color: #e0e0e0;
64
+  border-color: #dbdbdb;
65
+}
66
+.btn-default.disabled,
67
+.btn-default:disabled,
68
+.btn-default[disabled] {
69
+  background-color: #e0e0e0;
70
+  background-image: none;
71
+}
72
+.btn-primary {
73
+  background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%);
74
+  background-image:      -o-linear-gradient(top, #337ab7 0%, #265a88 100%);
75
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#265a88));
76
+  background-image:         linear-gradient(to bottom, #337ab7 0%, #265a88 100%);
77
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);
78
+  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
79
+  background-repeat: repeat-x;
80
+  border-color: #245580;
81
+}
82
+.btn-primary:hover,
83
+.btn-primary:focus {
84
+  background-color: #265a88;
85
+  background-position: 0 -15px;
86
+}
87
+.btn-primary:active,
88
+.btn-primary.active {
89
+  background-color: #265a88;
90
+  border-color: #245580;
91
+}
92
+.btn-primary.disabled,
93
+.btn-primary:disabled,
94
+.btn-primary[disabled] {
95
+  background-color: #265a88;
96
+  background-image: none;
97
+}
98
+.btn-success {
99
+  background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);
100
+  background-image:      -o-linear-gradient(top, #5cb85c 0%, #419641 100%);
101
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641));
102
+  background-image:         linear-gradient(to bottom, #5cb85c 0%, #419641 100%);
103
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);
104
+  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
105
+  background-repeat: repeat-x;
106
+  border-color: #3e8f3e;
107
+}
108
+.btn-success:hover,
109
+.btn-success:focus {
110
+  background-color: #419641;
111
+  background-position: 0 -15px;
112
+}
113
+.btn-success:active,
114
+.btn-success.active {
115
+  background-color: #419641;
116
+  border-color: #3e8f3e;
117
+}
118
+.btn-success.disabled,
119
+.btn-success:disabled,
120
+.btn-success[disabled] {
121
+  background-color: #419641;
122
+  background-image: none;
123
+}
124
+.btn-info {
125
+  background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
126
+  background-image:      -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
127
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2));
128
+  background-image:         linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%);
129
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);
130
+  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
131
+  background-repeat: repeat-x;
132
+  border-color: #28a4c9;
133
+}
134
+.btn-info:hover,
135
+.btn-info:focus {
136
+  background-color: #2aabd2;
137
+  background-position: 0 -15px;
138
+}
139
+.btn-info:active,
140
+.btn-info.active {
141
+  background-color: #2aabd2;
142
+  border-color: #28a4c9;
143
+}
144
+.btn-info.disabled,
145
+.btn-info:disabled,
146
+.btn-info[disabled] {
147
+  background-color: #2aabd2;
148
+  background-image: none;
149
+}
150
+.btn-warning {
151
+  background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
152
+  background-image:      -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
153
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316));
154
+  background-image:         linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%);
155
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);
156
+  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
157
+  background-repeat: repeat-x;
158
+  border-color: #e38d13;
159
+}
160
+.btn-warning:hover,
161
+.btn-warning:focus {
162
+  background-color: #eb9316;
163
+  background-position: 0 -15px;
164
+}
165
+.btn-warning:active,
166
+.btn-warning.active {
167
+  background-color: #eb9316;
168
+  border-color: #e38d13;
169
+}
170
+.btn-warning.disabled,
171
+.btn-warning:disabled,
172
+.btn-warning[disabled] {
173
+  background-color: #eb9316;
174
+  background-image: none;
175
+}
176
+.btn-danger {
177
+  background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
178
+  background-image:      -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
179
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a));
180
+  background-image:         linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%);
181
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);
182
+  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
183
+  background-repeat: repeat-x;
184
+  border-color: #b92c28;
185
+}
186
+.btn-danger:hover,
187
+.btn-danger:focus {
188
+  background-color: #c12e2a;
189
+  background-position: 0 -15px;
190
+}
191
+.btn-danger:active,
192
+.btn-danger.active {
193
+  background-color: #c12e2a;
194
+  border-color: #b92c28;
195
+}
196
+.btn-danger.disabled,
197
+.btn-danger:disabled,
198
+.btn-danger[disabled] {
199
+  background-color: #c12e2a;
200
+  background-image: none;
201
+}
202
+.thumbnail,
203
+.img-thumbnail {
204
+  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
205
+          box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
206
+}
207
+.dropdown-menu > li > a:hover,
208
+.dropdown-menu > li > a:focus {
209
+  background-color: #e8e8e8;
210
+  background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
211
+  background-image:      -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
212
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
213
+  background-image:         linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
214
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
215
+  background-repeat: repeat-x;
216
+}
217
+.dropdown-menu > .active > a,
218
+.dropdown-menu > .active > a:hover,
219
+.dropdown-menu > .active > a:focus {
220
+  background-color: #2e6da4;
221
+  background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
222
+  background-image:      -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
223
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
224
+  background-image:         linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
225
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
226
+  background-repeat: repeat-x;
227
+}
228
+.navbar-default {
229
+  background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%);
230
+  background-image:      -o-linear-gradient(top, #fff 0%, #f8f8f8 100%);
231
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8));
232
+  background-image:         linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);
233
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);
234
+  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
235
+  background-repeat: repeat-x;
236
+  border-radius: 4px;
237
+  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
238
+          box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
239
+}
240
+.navbar-default .navbar-nav > .open > a,
241
+.navbar-default .navbar-nav > .active > a {
242
+  background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);
243
+  background-image:      -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);
244
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2));
245
+  background-image:         linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%);
246
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);
247
+  background-repeat: repeat-x;
248
+  -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
249
+          box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
250
+}
251
+.navbar-brand,
252
+.navbar-nav > li > a {
253
+  text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
254
+}
255
+.navbar-inverse {
256
+  background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%);
257
+  background-image:      -o-linear-gradient(top, #3c3c3c 0%, #222 100%);
258
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222));
259
+  background-image:         linear-gradient(to bottom, #3c3c3c 0%, #222 100%);
260
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);
261
+  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
262
+  background-repeat: repeat-x;
263
+}
264
+.navbar-inverse .navbar-nav > .open > a,
265
+.navbar-inverse .navbar-nav > .active > a {
266
+  background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%);
267
+  background-image:      -o-linear-gradient(top, #080808 0%, #0f0f0f 100%);
268
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f));
269
+  background-image:         linear-gradient(to bottom, #080808 0%, #0f0f0f 100%);
270
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);
271
+  background-repeat: repeat-x;
272
+  -webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);
273
+          box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);
274
+}
275
+.navbar-inverse .navbar-brand,
276
+.navbar-inverse .navbar-nav > li > a {
277
+  text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
278
+}
279
+.navbar-static-top,
280
+.navbar-fixed-top,
281
+.navbar-fixed-bottom {
282
+  border-radius: 0;
283
+}
284
+@media (max-width: 767px) {
285
+  .navbar .navbar-nav .open .dropdown-menu > .active > a,
286
+  .navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
287
+  .navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
288
+    color: #fff;
289
+    background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
290
+    background-image:      -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
291
+    background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
292
+    background-image:         linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
293
+    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
294
+    background-repeat: repeat-x;
295
+  }
296
+}
297
+.alert {
298
+  text-shadow: 0 1px 0 rgba(255, 255, 255, .2);
299
+  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
300
+          box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
301
+}
302
+.alert-success {
303
+  background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
304
+  background-image:      -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
305
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc));
306
+  background-image:         linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);
307
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);
308
+  background-repeat: repeat-x;
309
+  border-color: #b2dba1;
310
+}
311
+.alert-info {
312
+  background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
313
+  background-image:      -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
314
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0));
315
+  background-image:         linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);
316
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
317
+  background-repeat: repeat-x;
318
+  border-color: #9acfea;
319
+}
320
+.alert-warning {
321
+  background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
322
+  background-image:      -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
323
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0));
324
+  background-image:         linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);
325
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);
326
+  background-repeat: repeat-x;
327
+  border-color: #f5e79e;
328
+}
329
+.alert-danger {
330
+  background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
331
+  background-image:      -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
332
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3));
333
+  background-image:         linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);
334
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);
335
+  background-repeat: repeat-x;
336
+  border-color: #dca7a7;
337
+}
338
+.progress {
339
+  background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
340
+  background-image:      -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
341
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5));
342
+  background-image:         linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%);
343
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);
344
+  background-repeat: repeat-x;
345
+}
346
+.progress-bar {
347
+  background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%);
348
+  background-image:      -o-linear-gradient(top, #337ab7 0%, #286090 100%);
349
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090));
350
+  background-image:         linear-gradient(to bottom, #337ab7 0%, #286090 100%);
351
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);
352
+  background-repeat: repeat-x;
353
+}
354
+.progress-bar-success {
355
+  background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%);
356
+  background-image:      -o-linear-gradient(top, #5cb85c 0%, #449d44 100%);
357
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44));
358
+  background-image:         linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);
359
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);
360
+  background-repeat: repeat-x;
361
+}
362
+.progress-bar-info {
363
+  background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
364
+  background-image:      -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
365
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5));
366
+  background-image:         linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);
367
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);
368
+  background-repeat: repeat-x;
369
+}
370
+.progress-bar-warning {
371
+  background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
372
+  background-image:      -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
373
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f));
374
+  background-image:         linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);
375
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);
376
+  background-repeat: repeat-x;
377
+}
378
+.progress-bar-danger {
379
+  background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%);
380
+  background-image:      -o-linear-gradient(top, #d9534f 0%, #c9302c 100%);
381
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c));
382
+  background-image:         linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);
383
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);
384
+  background-repeat: repeat-x;
385
+}
386
+.progress-bar-striped {
387
+  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
388
+  background-image:      -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
389
+  background-image:         linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
390
+}
391
+.list-group {
392
+  border-radius: 4px;
393
+  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
394
+          box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
395
+}
396
+.list-group-item.active,
397
+.list-group-item.active:hover,
398
+.list-group-item.active:focus {
399
+  text-shadow: 0 -1px 0 #286090;
400
+  background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%);
401
+  background-image:      -o-linear-gradient(top, #337ab7 0%, #2b669a 100%);
402
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a));
403
+  background-image:         linear-gradient(to bottom, #337ab7 0%, #2b669a 100%);
404
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);
405
+  background-repeat: repeat-x;
406
+  border-color: #2b669a;
407
+}
408
+.list-group-item.active .badge,
409
+.list-group-item.active:hover .badge,
410
+.list-group-item.active:focus .badge {
411
+  text-shadow: none;
412
+}
413
+.panel {
414
+  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
415
+          box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
416
+}
417
+.panel-default > .panel-heading {
418
+  background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
419
+  background-image:      -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
420
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
421
+  background-image:         linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
422
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
423
+  background-repeat: repeat-x;
424
+}
425
+.panel-primary > .panel-heading {
426
+  background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
427
+  background-image:      -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
428
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
429
+  background-image:         linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
430
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
431
+  background-repeat: repeat-x;
432
+}
433
+.panel-success > .panel-heading {
434
+  background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
435
+  background-image:      -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
436
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6));
437
+  background-image:         linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);
438
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);
439
+  background-repeat: repeat-x;
440
+}
441
+.panel-info > .panel-heading {
442
+  background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
443
+  background-image:      -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
444
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3));
445
+  background-image:         linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);
446
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);
447
+  background-repeat: repeat-x;
448
+}
449
+.panel-warning > .panel-heading {
450
+  background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
451
+  background-image:      -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
452
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc));
453
+  background-image:         linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);
454
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);
455
+  background-repeat: repeat-x;
456
+}
457
+.panel-danger > .panel-heading {
458
+  background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
459
+  background-image:      -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
460
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc));
461
+  background-image:         linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);
462
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);
463
+  background-repeat: repeat-x;
464
+}
465
+.well {
466
+  background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
467
+  background-image:      -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
468
+  background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5));
469
+  background-image:         linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);
470
+  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);
471
+  background-repeat: repeat-x;
472
+  border-color: #dcdcdc;
473
+  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
474
+          box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
475
+}
476
+/*# sourceMappingURL=bootstrap-theme.css.map */

+ 1
- 0
CacheControl-test/Content/bootstrap-theme.css.map
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 5
- 0
CacheControl-test/Content/bootstrap-theme.min.css
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 6584
- 0
CacheControl-test/Content/bootstrap.css
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 1
- 0
CacheControl-test/Content/bootstrap.css.map
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 5
- 0
CacheControl-test/Content/bootstrap.min.css
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 18
- 0
CacheControl-test/Controllers/HomeController.cs Datei anzeigen

@@ -0,0 +1,18 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Web;
5
+using System.Web.Mvc;
6
+
7
+namespace CacheControl_test.Controllers
8
+{
9
+    public class HomeController : Controller
10
+    {
11
+        public ActionResult Index()
12
+        {
13
+            ViewBag.Title = "Home Page";
14
+
15
+            return View();
16
+        }
17
+    }
18
+}

+ 38
- 0
CacheControl-test/Controllers/ValuesController.cs Datei anzeigen

@@ -0,0 +1,38 @@
1
+using System.Collections.Generic;
2
+using System.Web.Http;
3
+using iiie.CacheControl.Business.Attributes;
4
+using iiie.CacheControl.Business.OutputCache;
5
+
6
+namespace CacheControl_test.Controllers
7
+{
8
+    public class ValuesController : ApiController
9
+    {
10
+        // GET api/values
11
+        public IEnumerable<string> Get()
12
+        {
13
+            return new string[] { "value1", "value2" };
14
+        }
15
+
16
+        // GET api/values/5
17
+        [TimeCacheControl(60, true, false, OutputCacheType.File)]
18
+        public string Get(int id)
19
+        {
20
+            return "value";
21
+        }
22
+
23
+        // POST api/values
24
+        public void Post([FromBody]string value)
25
+        {
26
+        }
27
+
28
+        // PUT api/values/5
29
+        public void Put(int id, [FromBody]string value)
30
+        {
31
+        }
32
+
33
+        // DELETE api/values/5
34
+        public void Delete(int id)
35
+        {
36
+        }
37
+    }
38
+}

+ 1
- 0
CacheControl-test/Global.asax Datei anzeigen

@@ -0,0 +1 @@
1
+<%@ Application Codebehind="Global.asax.cs" Inherits="CacheControl_test.WebApiApplication" Language="C#" %>

+ 23
- 0
CacheControl-test/Global.asax.cs Datei anzeigen

@@ -0,0 +1,23 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Web;
5
+using System.Web.Http;
6
+using System.Web.Mvc;
7
+using System.Web.Optimization;
8
+using System.Web.Routing;
9
+
10
+namespace CacheControl_test
11
+{
12
+    public class WebApiApplication : System.Web.HttpApplication
13
+    {
14
+        protected void Application_Start()
15
+        {
16
+            AreaRegistration.RegisterAllAreas();
17
+            GlobalConfiguration.Configure(WebApiConfig.Register);
18
+            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
19
+            RouteConfig.RegisterRoutes(RouteTable.Routes);
20
+            BundleConfig.RegisterBundles(BundleTable.Bundles);
21
+        }
22
+    }
23
+}

BIN
CacheControl-test/Icon.png Datei anzeigen


+ 149
- 0
CacheControl-test/Project_Readme.html Datei anzeigen

@@ -0,0 +1,149 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+<head>
4
+    <meta charset="utf-8" />
5
+    <title>Your ASP.NET application</title>
6
+    <style>
7
+        body {
8
+            background: #fff;
9
+            color: #505050;
10
+            font: 14px 'Segoe UI', tahoma, arial, helvetica, sans-serif;
11
+            margin: 20px;
12
+            padding: 0;
13
+        }
14
+
15
+        #header {
16
+            background: #efefef;
17
+            padding: 0;
18
+        }
19
+
20
+        h1 {
21
+            font-size: 48px;
22
+            font-weight: normal;
23
+            margin: 0;
24
+            padding: 0 30px;
25
+            line-height: 150px;
26
+        }
27
+
28
+        p {
29
+            font-size: 20px;
30
+            color: #fff;
31
+            background: #969696;
32
+            padding: 0 30px;
33
+            line-height: 50px;
34
+        }
35
+
36
+        #main {
37
+            padding: 5px 30px;
38
+        }
39
+
40
+        .section {
41
+            width: 21.7%;
42
+            float: left;
43
+            margin: 0 0 0 4%;
44
+        }
45
+
46
+            .section h2 {
47
+                font-size: 13px;
48
+                text-transform: uppercase;
49
+                margin: 0;
50
+                border-bottom: 1px solid silver;
51
+                padding-bottom: 12px;
52
+                margin-bottom: 8px;
53
+            }
54
+
55
+            .section.first {
56
+                margin-left: 0;
57
+            }
58
+
59
+                .section.first h2 {
60
+                    font-size: 24px;
61
+                    text-transform: none;
62
+                    margin-bottom: 25px;
63
+                    border: none;
64
+                }
65
+
66
+                .section.first li {
67
+                    border-top: 1px solid silver;
68
+                    padding: 8px 0;
69
+                }
70
+
71
+            .section.last {
72
+                margin-right: 0;
73
+            }
74
+
75
+        ul {
76
+            list-style: none;
77
+            padding: 0;
78
+            margin: 0;
79
+            line-height: 20px;
80
+        }
81
+
82
+        li {
83
+            padding: 4px 0;
84
+        }
85
+
86
+        a {
87
+            color: #267cb2;
88
+            text-decoration: none;
89
+        }
90
+
91
+            a:hover {
92
+                text-decoration: underline;
93
+            }
94
+    </style>
95
+</head>
96
+<body>
97
+
98
+    <div id="header">
99
+        <h1>Your ASP.NET application</h1>
100
+        <p>Congratulations! You've created a project</p>
101
+    </div>
102
+
103
+    <div id="main">
104
+        <div class="section first">
105
+            <h2>This application consists of:</h2>
106
+            <ul>
107
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320956">Help Page</a> for documenting your Web APIs</li>
108
+                <li>Theming using <a href="http://go.microsoft.com/fwlink/?LinkID=320754">Bootstrap</a></li>
109
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320957">Authentication</a>, if selected, shows how to register and sign in</li>
110
+                <li>ASP.NET features managed using <a href="http://go.microsoft.com/fwlink/?LinkID=320958">NuGet</a></li>
111
+            </ul>
112
+        </div>
113
+
114
+        <div class="section">
115
+            <h2>Customize app</h2>
116
+            <ul>
117
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320959">Get started with HTTP services using ASP.NET Web API</a></li>
118
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320960">Change the site's theme</a></li>
119
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320961">Add more libraries using NuGet</a></li>
120
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320962">Configure authentication</a></li>
121
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320963">Scaffold an ASP.NET Web API from a model</a></li>
122
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320964">Secure your web API</a></li>
123
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320965">Access your web API on different devices</a></li>
124
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320966">Enable tracing for testing and debugging</a></li>
125
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320765">Add real-time web with ASP.NET SignalR</a></li>
126
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320766">Add components using Scaffolding</a></li>
127
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320768">Share your project</a></li>
128
+            </ul>
129
+        </div>
130
+
131
+        <div class="section">
132
+            <h2>Deploy</h2>
133
+            <ul>
134
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320769">Ensure your app is ready for production</a></li>
135
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320770">Windows Azure</a></li>
136
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320771">Hosting providers</a></li>
137
+            </ul>
138
+        </div>
139
+
140
+        <div class="section last">
141
+            <h2>Get help</h2>
142
+            <ul>
143
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320772">Get help</a></li>
144
+                <li><a href="http://go.microsoft.com/fwlink/?LinkID=320773">Get more templates</a></li>
145
+            </ul>
146
+        </div>
147
+    </div>
148
+</body>
149
+</html>

+ 35
- 0
CacheControl-test/Properties/AssemblyInfo.cs Datei anzeigen

@@ -0,0 +1,35 @@
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: AssemblyTitle("CacheControl_test")]
9
+[assembly: AssemblyDescription("")]
10
+[assembly: AssemblyConfiguration("")]
11
+[assembly: AssemblyCompany("")]
12
+[assembly: AssemblyProduct("CacheControl_test")]
13
+[assembly: AssemblyCopyright("Copyright ©  2015")]
14
+[assembly: AssemblyTrademark("")]
15
+[assembly: AssemblyCulture("")]
16
+
17
+// Setting ComVisible to false makes the types in this assembly not visible
18
+// to COM components.  If you need to access a type in this assembly from
19
+// COM, set the ComVisible attribute to true on that type.
20
+[assembly: ComVisible(false)]
21
+
22
+// The following GUID is for the ID of the typelib if this project is exposed to COM
23
+[assembly: Guid("9a43a758-4560-4535-ad93-c3381f9b68f8")]
24
+
25
+// Version information for an assembly consists of the following four values:
26
+//
27
+//      Major Version
28
+//      Minor Version
29
+//      Build Number
30
+//      Revision
31
+//
32
+// You can specify all the values or you can default the Revision and Build Numbers
33
+// by using the '*' as shown below:
34
+[assembly: AssemblyVersion("1.0.0.0")]
35
+[assembly: AssemblyFileVersion("1.0.0.0")]

BIN
CacheControl-test/Scripts/_references.js Datei anzeigen


+ 2317
- 0
CacheControl-test/Scripts/bootstrap.js
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 7
- 0
CacheControl-test/Scripts/bootstrap.min.js
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 2670
- 0
CacheControl-test/Scripts/jquery-2.1.4.intellisense.js
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 9210
- 0
CacheControl-test/Scripts/jquery-2.1.4.js
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 5
- 0
CacheControl-test/Scripts/jquery-2.1.4.min.js
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 1
- 0
CacheControl-test/Scripts/jquery-2.1.4.min.map
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 1406
- 0
CacheControl-test/Scripts/modernizr-2.8.3.js
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 13
- 0
CacheControl-test/Scripts/npm.js Datei anzeigen

@@ -0,0 +1,13 @@
1
+// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
2
+require('../../js/transition.js')
3
+require('../../js/alert.js')
4
+require('../../js/button.js')
5
+require('../../js/carousel.js')
6
+require('../../js/collapse.js')
7
+require('../../js/dropdown.js')
8
+require('../../js/modal.js')
9
+require('../../js/tooltip.js')
10
+require('../../js/popover.js')
11
+require('../../js/scrollspy.js')
12
+require('../../js/tab.js')
13
+require('../../js/affix.js')

+ 224
- 0
CacheControl-test/Scripts/respond.js Datei anzeigen

@@ -0,0 +1,224 @@
1
+/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
2
+/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
3
+(function(w) {
4
+  "use strict";
5
+  w.matchMedia = w.matchMedia || function(doc, undefined) {
6
+    var bool, docElem = doc.documentElement, refNode = docElem.firstElementChild || docElem.firstChild, fakeBody = doc.createElement("body"), div = doc.createElement("div");
7
+    div.id = "mq-test-1";
8
+    div.style.cssText = "position:absolute;top:-100em";
9
+    fakeBody.style.background = "none";
10
+    fakeBody.appendChild(div);
11
+    return function(q) {
12
+      div.innerHTML = '&shy;<style media="' + q + '"> #mq-test-1 { width: 42px; }</style>';
13
+      docElem.insertBefore(fakeBody, refNode);
14
+      bool = div.offsetWidth === 42;
15
+      docElem.removeChild(fakeBody);
16
+      return {
17
+        matches: bool,
18
+        media: q
19
+      };
20
+    };
21
+  }(w.document);
22
+})(this);
23
+
24
+/*! Respond.js v1.4.0: min/max-width media query polyfill. (c) Scott Jehl. MIT Lic. j.mp/respondjs  */
25
+(function(w) {
26
+  "use strict";
27
+  var respond = {};
28
+  w.respond = respond;
29
+  respond.update = function() {};
30
+  var requestQueue = [], xmlHttp = function() {
31
+    var xmlhttpmethod = false;
32
+    try {
33
+      xmlhttpmethod = new w.XMLHttpRequest();
34
+    } catch (e) {
35
+      xmlhttpmethod = new w.ActiveXObject("Microsoft.XMLHTTP");
36
+    }
37
+    return function() {
38
+      return xmlhttpmethod;
39
+    };
40
+  }(), ajax = function(url, callback) {
41
+    var req = xmlHttp();
42
+    if (!req) {
43
+      return;
44
+    }
45
+    req.open("GET", url, true);
46
+    req.onreadystatechange = function() {
47
+      if (req.readyState !== 4 || req.status !== 200 && req.status !== 304) {
48
+        return;
49
+      }
50
+      callback(req.responseText);
51
+    };
52
+    if (req.readyState === 4) {
53
+      return;
54
+    }
55
+    req.send(null);
56
+  };
57
+  respond.ajax = ajax;
58
+  respond.queue = requestQueue;
59
+  respond.regex = {
60
+    media: /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,
61
+    keyframes: /@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,
62
+    urls: /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,
63
+    findStyles: /@media *([^\{]+)\{([\S\s]+?)$/,
64
+    only: /(only\s+)?([a-zA-Z]+)\s?/,
65
+    minw: /\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,
66
+    maxw: /\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/
67
+  };
68
+  respond.mediaQueriesSupported = w.matchMedia && w.matchMedia("only all") !== null && w.matchMedia("only all").matches;
69
+  if (respond.mediaQueriesSupported) {
70
+    return;
71
+  }
72
+  var doc = w.document, docElem = doc.documentElement, mediastyles = [], rules = [], appendedEls = [], parsedSheets = {}, resizeThrottle = 30, head = doc.getElementsByTagName("head")[0] || docElem, base = doc.getElementsByTagName("base")[0], links = head.getElementsByTagName("link"), lastCall, resizeDefer, eminpx, getEmValue = function() {
73
+    var ret, div = doc.createElement("div"), body = doc.body, originalHTMLFontSize = docElem.style.fontSize, originalBodyFontSize = body && body.style.fontSize, fakeUsed = false;
74
+    div.style.cssText = "position:absolute;font-size:1em;width:1em";
75
+    if (!body) {
76
+      body = fakeUsed = doc.createElement("body");
77
+      body.style.background = "none";
78
+    }
79
+    docElem.style.fontSize = "100%";
80
+    body.style.fontSize = "100%";
81
+    body.appendChild(div);
82
+    if (fakeUsed) {
83
+      docElem.insertBefore(body, docElem.firstChild);
84
+    }
85
+    ret = div.offsetWidth;
86
+    if (fakeUsed) {
87
+      docElem.removeChild(body);
88
+    } else {
89
+      body.removeChild(div);
90
+    }
91
+    docElem.style.fontSize = originalHTMLFontSize;
92
+    if (originalBodyFontSize) {
93
+      body.style.fontSize = originalBodyFontSize;
94
+    }
95
+    ret = eminpx = parseFloat(ret);
96
+    return ret;
97
+  }, applyMedia = function(fromResize) {
98
+    var name = "clientWidth", docElemProp = docElem[name], currWidth = doc.compatMode === "CSS1Compat" && docElemProp || doc.body[name] || docElemProp, styleBlocks = {}, lastLink = links[links.length - 1], now = new Date().getTime();
99
+    if (fromResize && lastCall && now - lastCall < resizeThrottle) {
100
+      w.clearTimeout(resizeDefer);
101
+      resizeDefer = w.setTimeout(applyMedia, resizeThrottle);
102
+      return;
103
+    } else {
104
+      lastCall = now;
105
+    }
106
+    for (var i in mediastyles) {
107
+      if (mediastyles.hasOwnProperty(i)) {
108
+        var thisstyle = mediastyles[i], min = thisstyle.minw, max = thisstyle.maxw, minnull = min === null, maxnull = max === null, em = "em";
109
+        if (!!min) {
110
+          min = parseFloat(min) * (min.indexOf(em) > -1 ? eminpx || getEmValue() : 1);
111
+        }
112
+        if (!!max) {
113
+          max = parseFloat(max) * (max.indexOf(em) > -1 ? eminpx || getEmValue() : 1);
114
+        }
115
+        if (!thisstyle.hasquery || (!minnull || !maxnull) && (minnull || currWidth >= min) && (maxnull || currWidth <= max)) {
116
+          if (!styleBlocks[thisstyle.media]) {
117
+            styleBlocks[thisstyle.media] = [];
118
+          }
119
+          styleBlocks[thisstyle.media].push(rules[thisstyle.rules]);
120
+        }
121
+      }
122
+    }
123
+    for (var j in appendedEls) {
124
+      if (appendedEls.hasOwnProperty(j)) {
125
+        if (appendedEls[j] && appendedEls[j].parentNode === head) {
126
+          head.removeChild(appendedEls[j]);
127
+        }
128
+      }
129
+    }
130
+    appendedEls.length = 0;
131
+    for (var k in styleBlocks) {
132
+      if (styleBlocks.hasOwnProperty(k)) {
133
+        var ss = doc.createElement("style"), css = styleBlocks[k].join("\n");
134
+        ss.type = "text/css";
135
+        ss.media = k;
136
+        head.insertBefore(ss, lastLink.nextSibling);
137
+        if (ss.styleSheet) {
138
+          ss.styleSheet.cssText = css;
139
+        } else {
140
+          ss.appendChild(doc.createTextNode(css));
141
+        }
142
+        appendedEls.push(ss);
143
+      }
144
+    }
145
+  }, translate = function(styles, href, media) {
146
+    var qs = styles.replace(respond.regex.keyframes, "").match(respond.regex.media), ql = qs && qs.length || 0;
147
+    href = href.substring(0, href.lastIndexOf("/"));
148
+    var repUrls = function(css) {
149
+      return css.replace(respond.regex.urls, "$1" + href + "$2$3");
150
+    }, useMedia = !ql && media;
151
+    if (href.length) {
152
+      href += "/";
153
+    }
154
+    if (useMedia) {
155
+      ql = 1;
156
+    }
157
+    for (var i = 0; i < ql; i++) {
158
+      var fullq, thisq, eachq, eql;
159
+      if (useMedia) {
160
+        fullq = media;
161
+        rules.push(repUrls(styles));
162
+      } else {
163
+        fullq = qs[i].match(respond.regex.findStyles) && RegExp.$1;
164
+        rules.push(RegExp.$2 && repUrls(RegExp.$2));
165
+      }
166
+      eachq = fullq.split(",");
167
+      eql = eachq.length;
168
+      for (var j = 0; j < eql; j++) {
169
+        thisq = eachq[j];
170
+        mediastyles.push({
171
+          media: thisq.split("(")[0].match(respond.regex.only) && RegExp.$2 || "all",
172
+          rules: rules.length - 1,
173
+          hasquery: thisq.indexOf("(") > -1,
174
+          minw: thisq.match(respond.regex.minw) && parseFloat(RegExp.$1) + (RegExp.$2 || ""),
175
+          maxw: thisq.match(respond.regex.maxw) && parseFloat(RegExp.$1) + (RegExp.$2 || "")
176
+        });
177
+      }
178
+    }
179
+    applyMedia();
180
+  }, makeRequests = function() {
181
+    if (requestQueue.length) {
182
+      var thisRequest = requestQueue.shift();
183
+      ajax(thisRequest.href, function(styles) {
184
+        translate(styles, thisRequest.href, thisRequest.media);
185
+        parsedSheets[thisRequest.href] = true;
186
+        w.setTimeout(function() {
187
+          makeRequests();
188
+        }, 0);
189
+      });
190
+    }
191
+  }, ripCSS = function() {
192
+    for (var i = 0; i < links.length; i++) {
193
+      var sheet = links[i], href = sheet.href, media = sheet.media, isCSS = sheet.rel && sheet.rel.toLowerCase() === "stylesheet";
194
+      if (!!href && isCSS && !parsedSheets[href]) {
195
+        if (sheet.styleSheet && sheet.styleSheet.rawCssText) {
196
+          translate(sheet.styleSheet.rawCssText, href, media);
197
+          parsedSheets[href] = true;
198
+        } else {
199
+          if (!/^([a-zA-Z:]*\/\/)/.test(href) && !base || href.replace(RegExp.$1, "").split("/")[0] === w.location.host) {
200
+            if (href.substring(0, 2) === "//") {
201
+              href = w.location.protocol + href;
202
+            }
203
+            requestQueue.push({
204
+              href: href,
205
+              media: media
206
+            });
207
+          }
208
+        }
209
+      }
210
+    }
211
+    makeRequests();
212
+  };
213
+  ripCSS();
214
+  respond.update = ripCSS;
215
+  respond.getEmValue = getEmValue;
216
+  function callMedia() {
217
+    applyMedia(true);
218
+  }
219
+  if (w.addEventListener) {
220
+    w.addEventListener("resize", callMedia, false);
221
+  } else if (w.attachEvent) {
222
+    w.attachEvent("onresize", callMedia);
223
+  }
224
+})(this);

+ 273
- 0
CacheControl-test/Scripts/respond.matchmedia.addListener.js Datei anzeigen

@@ -0,0 +1,273 @@
1
+/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
2
+/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
3
+(function(w) {
4
+  "use strict";
5
+  w.matchMedia = w.matchMedia || function(doc, undefined) {
6
+    var bool, docElem = doc.documentElement, refNode = docElem.firstElementChild || docElem.firstChild, fakeBody = doc.createElement("body"), div = doc.createElement("div");
7
+    div.id = "mq-test-1";
8
+    div.style.cssText = "position:absolute;top:-100em";
9
+    fakeBody.style.background = "none";
10
+    fakeBody.appendChild(div);
11
+    return function(q) {
12
+      div.innerHTML = '&shy;<style media="' + q + '"> #mq-test-1 { width: 42px; }</style>';
13
+      docElem.insertBefore(fakeBody, refNode);
14
+      bool = div.offsetWidth === 42;
15
+      docElem.removeChild(fakeBody);
16
+      return {
17
+        matches: bool,
18
+        media: q
19
+      };
20
+    };
21
+  }(w.document);
22
+})(this);
23
+
24
+/*! matchMedia() polyfill addListener/removeListener extension. Author & copyright (c) 2012: Scott Jehl. Dual MIT/BSD license */
25
+(function(w) {
26
+  "use strict";
27
+  if (w.matchMedia && w.matchMedia("all").addListener) {
28
+    return false;
29
+  }
30
+  var localMatchMedia = w.matchMedia, hasMediaQueries = localMatchMedia("only all").matches, isListening = false, timeoutID = 0, queries = [], handleChange = function(evt) {
31
+    w.clearTimeout(timeoutID);
32
+    timeoutID = w.setTimeout(function() {
33
+      for (var i = 0, il = queries.length; i < il; i++) {
34
+        var mql = queries[i].mql, listeners = queries[i].listeners || [], matches = localMatchMedia(mql.media).matches;
35
+        if (matches !== mql.matches) {
36
+          mql.matches = matches;
37
+          for (var j = 0, jl = listeners.length; j < jl; j++) {
38
+            listeners[j].call(w, mql);
39
+          }
40
+        }
41
+      }
42
+    }, 30);
43
+  };
44
+  w.matchMedia = function(media) {
45
+    var mql = localMatchMedia(media), listeners = [], index = 0;
46
+    mql.addListener = function(listener) {
47
+      if (!hasMediaQueries) {
48
+        return;
49
+      }
50
+      if (!isListening) {
51
+        isListening = true;
52
+        w.addEventListener("resize", handleChange, true);
53
+      }
54
+      if (index === 0) {
55
+        index = queries.push({
56
+          mql: mql,
57
+          listeners: listeners
58
+        });
59
+      }
60
+      listeners.push(listener);
61
+    };
62
+    mql.removeListener = function(listener) {
63
+      for (var i = 0, il = listeners.length; i < il; i++) {
64
+        if (listeners[i] === listener) {
65
+          listeners.splice(i, 1);
66
+        }
67
+      }
68
+    };
69
+    return mql;
70
+  };
71
+})(this);
72
+
73
+/*! Respond.js v1.4.0: min/max-width media query polyfill. (c) Scott Jehl. MIT Lic. j.mp/respondjs  */
74
+(function(w) {
75
+  "use strict";
76
+  var respond = {};
77
+  w.respond = respond;
78
+  respond.update = function() {};
79
+  var requestQueue = [], xmlHttp = function() {
80
+    var xmlhttpmethod = false;
81
+    try {
82
+      xmlhttpmethod = new w.XMLHttpRequest();
83
+    } catch (e) {
84
+      xmlhttpmethod = new w.ActiveXObject("Microsoft.XMLHTTP");
85
+    }
86
+    return function() {
87
+      return xmlhttpmethod;
88
+    };
89
+  }(), ajax = function(url, callback) {
90
+    var req = xmlHttp();
91
+    if (!req) {
92
+      return;
93
+    }
94
+    req.open("GET", url, true);
95
+    req.onreadystatechange = function() {
96
+      if (req.readyState !== 4 || req.status !== 200 && req.status !== 304) {
97
+        return;
98
+      }
99
+      callback(req.responseText);
100
+    };
101
+    if (req.readyState === 4) {
102
+      return;
103
+    }
104
+    req.send(null);
105
+  };
106
+  respond.ajax = ajax;
107
+  respond.queue = requestQueue;
108
+  respond.regex = {
109
+    media: /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,
110
+    keyframes: /@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,
111
+    urls: /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,
112
+    findStyles: /@media *([^\{]+)\{([\S\s]+?)$/,
113
+    only: /(only\s+)?([a-zA-Z]+)\s?/,
114
+    minw: /\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,
115
+    maxw: /\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/
116
+  };
117
+  respond.mediaQueriesSupported = w.matchMedia && w.matchMedia("only all") !== null && w.matchMedia("only all").matches;
118
+  if (respond.mediaQueriesSupported) {
119
+    return;
120
+  }
121
+  var doc = w.document, docElem = doc.documentElement, mediastyles = [], rules = [], appendedEls = [], parsedSheets = {}, resizeThrottle = 30, head = doc.getElementsByTagName("head")[0] || docElem, base = doc.getElementsByTagName("base")[0], links = head.getElementsByTagName("link"), lastCall, resizeDefer, eminpx, getEmValue = function() {
122
+    var ret, div = doc.createElement("div"), body = doc.body, originalHTMLFontSize = docElem.style.fontSize, originalBodyFontSize = body && body.style.fontSize, fakeUsed = false;
123
+    div.style.cssText = "position:absolute;font-size:1em;width:1em";
124
+    if (!body) {
125
+      body = fakeUsed = doc.createElement("body");
126
+      body.style.background = "none";
127
+    }
128
+    docElem.style.fontSize = "100%";
129
+    body.style.fontSize = "100%";
130
+    body.appendChild(div);
131
+    if (fakeUsed) {
132
+      docElem.insertBefore(body, docElem.firstChild);
133
+    }
134
+    ret = div.offsetWidth;
135
+    if (fakeUsed) {
136
+      docElem.removeChild(body);
137
+    } else {
138
+      body.removeChild(div);
139
+    }
140
+    docElem.style.fontSize = originalHTMLFontSize;
141
+    if (originalBodyFontSize) {
142
+      body.style.fontSize = originalBodyFontSize;
143
+    }
144
+    ret = eminpx = parseFloat(ret);
145
+    return ret;
146
+  }, applyMedia = function(fromResize) {
147
+    var name = "clientWidth", docElemProp = docElem[name], currWidth = doc.compatMode === "CSS1Compat" && docElemProp || doc.body[name] || docElemProp, styleBlocks = {}, lastLink = links[links.length - 1], now = new Date().getTime();
148
+    if (fromResize && lastCall && now - lastCall < resizeThrottle) {
149
+      w.clearTimeout(resizeDefer);
150
+      resizeDefer = w.setTimeout(applyMedia, resizeThrottle);
151
+      return;
152
+    } else {
153
+      lastCall = now;
154
+    }
155
+    for (var i in mediastyles) {
156
+      if (mediastyles.hasOwnProperty(i)) {
157
+        var thisstyle = mediastyles[i], min = thisstyle.minw, max = thisstyle.maxw, minnull = min === null, maxnull = max === null, em = "em";
158
+        if (!!min) {
159
+          min = parseFloat(min) * (min.indexOf(em) > -1 ? eminpx || getEmValue() : 1);
160
+        }
161
+        if (!!max) {
162
+          max = parseFloat(max) * (max.indexOf(em) > -1 ? eminpx || getEmValue() : 1);
163
+        }
164
+        if (!thisstyle.hasquery || (!minnull || !maxnull) && (minnull || currWidth >= min) && (maxnull || currWidth <= max)) {
165
+          if (!styleBlocks[thisstyle.media]) {
166
+            styleBlocks[thisstyle.media] = [];
167
+          }
168
+          styleBlocks[thisstyle.media].push(rules[thisstyle.rules]);
169
+        }
170
+      }
171
+    }
172
+    for (var j in appendedEls) {
173
+      if (appendedEls.hasOwnProperty(j)) {
174
+        if (appendedEls[j] && appendedEls[j].parentNode === head) {
175
+          head.removeChild(appendedEls[j]);
176
+        }
177
+      }
178
+    }
179
+    appendedEls.length = 0;
180
+    for (var k in styleBlocks) {
181
+      if (styleBlocks.hasOwnProperty(k)) {
182
+        var ss = doc.createElement("style"), css = styleBlocks[k].join("\n");
183
+        ss.type = "text/css";
184
+        ss.media = k;
185
+        head.insertBefore(ss, lastLink.nextSibling);
186
+        if (ss.styleSheet) {
187
+          ss.styleSheet.cssText = css;
188
+        } else {
189
+          ss.appendChild(doc.createTextNode(css));
190
+        }
191
+        appendedEls.push(ss);
192
+      }
193
+    }
194
+  }, translate = function(styles, href, media) {
195
+    var qs = styles.replace(respond.regex.keyframes, "").match(respond.regex.media), ql = qs && qs.length || 0;
196
+    href = href.substring(0, href.lastIndexOf("/"));
197
+    var repUrls = function(css) {
198
+      return css.replace(respond.regex.urls, "$1" + href + "$2$3");
199
+    }, useMedia = !ql && media;
200
+    if (href.length) {
201
+      href += "/";
202
+    }
203
+    if (useMedia) {
204
+      ql = 1;
205
+    }
206
+    for (var i = 0; i < ql; i++) {
207
+      var fullq, thisq, eachq, eql;
208
+      if (useMedia) {
209
+        fullq = media;
210
+        rules.push(repUrls(styles));
211
+      } else {
212
+        fullq = qs[i].match(respond.regex.findStyles) && RegExp.$1;
213
+        rules.push(RegExp.$2 && repUrls(RegExp.$2));
214
+      }
215
+      eachq = fullq.split(",");
216
+      eql = eachq.length;
217
+      for (var j = 0; j < eql; j++) {
218
+        thisq = eachq[j];
219
+        mediastyles.push({
220
+          media: thisq.split("(")[0].match(respond.regex.only) && RegExp.$2 || "all",
221
+          rules: rules.length - 1,
222
+          hasquery: thisq.indexOf("(") > -1,
223
+          minw: thisq.match(respond.regex.minw) && parseFloat(RegExp.$1) + (RegExp.$2 || ""),
224
+          maxw: thisq.match(respond.regex.maxw) && parseFloat(RegExp.$1) + (RegExp.$2 || "")
225
+        });
226
+      }
227
+    }
228
+    applyMedia();
229
+  }, makeRequests = function() {
230
+    if (requestQueue.length) {
231
+      var thisRequest = requestQueue.shift();
232
+      ajax(thisRequest.href, function(styles) {
233
+        translate(styles, thisRequest.href, thisRequest.media);
234
+        parsedSheets[thisRequest.href] = true;
235
+        w.setTimeout(function() {
236
+          makeRequests();
237
+        }, 0);
238
+      });
239
+    }
240
+  }, ripCSS = function() {
241
+    for (var i = 0; i < links.length; i++) {
242
+      var sheet = links[i], href = sheet.href, media = sheet.media, isCSS = sheet.rel && sheet.rel.toLowerCase() === "stylesheet";
243
+      if (!!href && isCSS && !parsedSheets[href]) {
244
+        if (sheet.styleSheet && sheet.styleSheet.rawCssText) {
245
+          translate(sheet.styleSheet.rawCssText, href, media);
246
+          parsedSheets[href] = true;
247
+        } else {
248
+          if (!/^([a-zA-Z:]*\/\/)/.test(href) && !base || href.replace(RegExp.$1, "").split("/")[0] === w.location.host) {
249
+            if (href.substring(0, 2) === "//") {
250
+              href = w.location.protocol + href;
251
+            }
252
+            requestQueue.push({
253
+              href: href,
254
+              media: media
255
+            });
256
+          }
257
+        }
258
+      }
259
+    }
260
+    makeRequests();
261
+  };
262
+  ripCSS();
263
+  respond.update = ripCSS;
264
+  respond.getEmValue = getEmValue;
265
+  function callMedia() {
266
+    applyMedia(true);
267
+  }
268
+  if (w.addEventListener) {
269
+    w.addEventListener("resize", callMedia, false);
270
+  } else if (w.attachEvent) {
271
+    w.attachEvent("onresize", callMedia);
272
+  }
273
+})(this);

+ 5
- 0
CacheControl-test/Scripts/respond.matchmedia.addListener.min.js Datei anzeigen

@@ -0,0 +1,5 @@
1
+/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl
2
+ * Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT
3
+ *  */
4
+
5
+!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='&shy;<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";if(a.matchMedia&&a.matchMedia("all").addListener)return!1;var b=a.matchMedia,c=b("only all").matches,d=!1,e=0,f=[],g=function(){a.clearTimeout(e),e=a.setTimeout(function(){for(var c=0,d=f.length;d>c;c++){var e=f[c].mql,g=f[c].listeners||[],h=b(e.media).matches;if(h!==e.matches){e.matches=h;for(var i=0,j=g.length;j>i;i++)g[i].call(a,e)}}},30)};a.matchMedia=function(e){var h=b(e),i=[],j=0;return h.addListener=function(b){c&&(d||(d=!0,a.addEventListener("resize",g,!0)),0===j&&(j=f.push({mql:h,listeners:i})),i.push(b))},h.removeListener=function(a){for(var b=0,c=i.length;c>b;b++)i[b]===a&&i.splice(b,1)},h}}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(v(c.styleSheet.rawCssText,e,f),o[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.update=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this);

+ 5
- 0
CacheControl-test/Scripts/respond.min.js Datei anzeigen

@@ -0,0 +1,5 @@
1
+/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Scott Jehl
2
+ * Licensed under https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT
3
+ *  */
4
+
5
+!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='&shy;<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){u(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))};if(c.ajax=f,c.queue=d,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var g,h,i,j=a.document,k=j.documentElement,l=[],m=[],n=[],o={},p=30,q=j.getElementsByTagName("head")[0]||k,r=j.getElementsByTagName("base")[0],s=q.getElementsByTagName("link"),t=function(){var a,b=j.createElement("div"),c=j.body,d=k.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=j.createElement("body"),c.style.background="none"),k.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&k.insertBefore(c,k.firstChild),a=b.offsetWidth,f?k.removeChild(c):c.removeChild(b),k.style.fontSize=d,e&&(c.style.fontSize=e),a=i=parseFloat(a)},u=function(b){var c="clientWidth",d=k[c],e="CSS1Compat"===j.compatMode&&d||j.body[c]||d,f={},o=s[s.length-1],r=(new Date).getTime();if(b&&g&&p>r-g)return a.clearTimeout(h),h=a.setTimeout(u,p),void 0;g=r;for(var v in l)if(l.hasOwnProperty(v)){var w=l[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?i||t():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?i||t():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(m[w.rules]))}for(var C in n)n.hasOwnProperty(C)&&n[C]&&n[C].parentNode===q&&q.removeChild(n[C]);n.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=j.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,q.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(j.createTextNode(F)),n.push(E)}},v=function(a,b,d){var e=a.replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var g=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},h=!f&&d;b.length&&(b+="/"),h&&(f=1);for(var i=0;f>i;i++){var j,k,n,o;h?(j=d,m.push(g(a))):(j=e[i].match(c.regex.findStyles)&&RegExp.$1,m.push(RegExp.$2&&g(RegExp.$2))),n=j.split(","),o=n.length;for(var p=0;o>p;p++)k=n[p],l.push({media:k.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:m.length-1,hasquery:k.indexOf("(")>-1,minw:k.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:k.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},w=function(){if(d.length){var b=d.shift();f(b.href,function(c){v(c,b.href,b.media),o[b.href]=!0,a.setTimeout(function(){w()},0)})}},x=function(){for(var b=0;b<s.length;b++){var c=s[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!o[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(v(c.styleSheet.rawCssText,e,f),o[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!r||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}w()};x(),c.update=x,c.getEmValue=t,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this);

+ 24
- 0
CacheControl-test/Views/Home/Index.cshtml Datei anzeigen

@@ -0,0 +1,24 @@
1
+<div class="jumbotron">
2
+    <h1>ASP.NET</h1>
3
+    <p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.</p>
4
+    <p><a href="http://asp.net" class="btn btn-primary btn-large">Learn more &raquo;</a></p>
5
+</div>
6
+<div class="row">
7
+    <div class="col-md-4">
8
+        <h2>Getting started</h2>
9
+        <p>ASP.NET Web API is a framework that makes it easy to build HTTP services that reach
10
+        a broad range of clients, including browsers and mobile devices. ASP.NET Web API
11
+        is an ideal platform for building RESTful applications on the .NET Framework.</p>
12
+        <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301870">Learn more &raquo;</a></p>
13
+    </div>
14
+    <div class="col-md-4">
15
+        <h2>Get more libraries</h2>
16
+        <p>NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.</p>
17
+        <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301871">Learn more &raquo;</a></p>
18
+    </div>
19
+    <div class="col-md-4">
20
+        <h2>Web Hosting</h2>
21
+        <p>You can easily find a web hosting company that offers the right mix of features and price for your applications.</p>
22
+        <p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301872">Learn more &raquo;</a></p>
23
+    </div>
24
+</div>

+ 17
- 0
CacheControl-test/Views/Shared/Error.cshtml Datei anzeigen

@@ -0,0 +1,17 @@
1
+@{
2
+    Layout = null;
3
+}
4
+
5
+<!DOCTYPE html>
6
+<html>
7
+<head>
8
+    <meta name="viewport" content="width=device-width" />
9
+    <title>Error</title>
10
+</head>
11
+<body>
12
+    <hgroup>
13
+        <h1>Error.</h1>
14
+        <h2>An error occurred while processing your request.</h2>
15
+    </hgroup>
16
+</body>
17
+</html>

+ 41
- 0
CacheControl-test/Views/Shared/_Layout.cshtml Datei anzeigen

@@ -0,0 +1,41 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+    <meta charset="utf-8" />
5
+    <meta name="viewport" content="width=device-width" />
6
+    <title>@ViewBag.Title</title>
7
+    @Styles.Render("~/Content/css")
8
+    @Scripts.Render("~/bundles/modernizr")
9
+</head>
10
+<body>
11
+    <div class="navbar navbar-inverse navbar-fixed-top">
12
+        <div class="container">
13
+            <div class="navbar-header">
14
+                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
15
+                    <span class="icon-bar"></span>
16
+                    <span class="icon-bar"></span>
17
+                    <span class="icon-bar"></span>
18
+                </button>
19
+                @Html.ActionLink("Application name", "Index", "Home", null, new { @class = "navbar-brand" })
20
+            </div>
21
+            <div class="navbar-collapse collapse">
22
+                <ul class="nav navbar-nav">
23
+                    <li>@Html.ActionLink("Home", "Index", "Home", new { area = "" }, null)</li>
24
+                    <li>@Html.ActionLink("API", "Index", "Help", new { area = "" }, null)</li>
25
+                </ul>
26
+            </div>
27
+        </div>
28
+    </div>
29
+    <div class="container body-content">
30
+        @RenderBody()
31
+        <hr />
32
+        <footer>
33
+            <p>&copy; @DateTime.Now.Year - My ASP.NET Application</p>
34
+        </footer>
35
+    </div>
36
+
37
+    @Scripts.Render("~/bundles/jquery")
38
+    @Scripts.Render("~/bundles/bootstrap")
39
+    @RenderSection("scripts", required: false)
40
+</body>
41
+</html>

+ 35
- 0
CacheControl-test/Views/Web.config Datei anzeigen

@@ -0,0 +1,35 @@
1
+<?xml version="1.0"?>
2
+
3
+<configuration>
4
+  <configSections>
5
+    <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
6
+      <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
7
+      <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
8
+    </sectionGroup>
9
+  </configSections>
10
+
11
+  <system.web.webPages.razor>
12
+    <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
13
+    <pages pageBaseType="System.Web.Mvc.WebViewPage">
14
+      <namespaces>
15
+        <add namespace="System.Web.Mvc" />
16
+        <add namespace="System.Web.Mvc.Ajax" />
17
+        <add namespace="System.Web.Mvc.Html" />
18
+        <add namespace="System.Web.Optimization"/>
19
+        <add namespace="System.Web.Routing" />
20
+        <add namespace="CacheControl_test" />
21
+      </namespaces>
22
+    </pages>
23
+  </system.web.webPages.razor>
24
+
25
+  <appSettings>
26
+    <add key="webpages:Enabled" value="false" />
27
+  </appSettings>
28
+
29
+  <system.webServer>
30
+    <handlers>
31
+      <remove name="BlockViewHandler"/>
32
+      <add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
33
+    </handlers>
34
+  </system.webServer>
35
+</configuration>

+ 3
- 0
CacheControl-test/Views/_ViewStart.cshtml Datei anzeigen

@@ -0,0 +1,3 @@
1
+@{
2
+    Layout = "~/Views/Shared/_Layout.cshtml";
3
+}

+ 30
- 0
CacheControl-test/Web.Debug.config Datei anzeigen

@@ -0,0 +1,30 @@
1
+<?xml version="1.0"?>
2
+
3
+<!-- For more information on using Web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=301874 -->
4
+
5
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
6
+  <!--
7
+    In the example below, the "SetAttributes" transform will change the value of
8
+    "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
9
+    finds an atrribute "name" that has a value of "MyDB".
10
+
11
+    <connectionStrings>
12
+      <add name="MyDB"
13
+        connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
14
+        xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
15
+    </connectionStrings>
16
+  -->
17
+  <system.web>
18
+    <!--
19
+      In the example below, the "Replace" transform will replace the entire
20
+      <customErrors> section of your Web.config file.
21
+      Note that because there is only one customErrors section under the
22
+      <system.web> node, there is no need to use the "xdt:Locator" attribute.
23
+
24
+      <customErrors defaultRedirect="GenericError.htm"
25
+        mode="RemoteOnly" xdt:Transform="Replace">
26
+        <error statusCode="500" redirect="InternalError.htm"/>
27
+      </customErrors>
28
+    -->
29
+  </system.web>
30
+</configuration>

+ 31
- 0
CacheControl-test/Web.Release.config Datei anzeigen

@@ -0,0 +1,31 @@
1
+<?xml version="1.0"?>
2
+
3
+<!-- For more information on using Web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=301874 -->
4
+
5
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
6
+  <!--
7
+    In the example below, the "SetAttributes" transform will change the value of
8
+    "connectionString" to use "ReleaseSQLServer" only when the "Match" locator
9
+    finds an atrribute "name" that has a value of "MyDB".
10
+
11
+    <connectionStrings>
12
+      <add name="MyDB"
13
+        connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
14
+        xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
15
+    </connectionStrings>
16
+  -->
17
+  <system.web>
18
+    <compilation xdt:Transform="RemoveAttributes(debug)" />
19
+    <!--
20
+      In the example below, the "Replace" transform will replace the entire
21
+      <customErrors> section of your Web.config file.
22
+      Note that because there is only one customErrors section under the
23
+      <system.web> node, there is no need to use the "xdt:Locator" attribute.
24
+
25
+      <customErrors defaultRedirect="GenericError.htm"
26
+        mode="RemoteOnly" xdt:Transform="Replace">
27
+        <error statusCode="500" redirect="InternalError.htm"/>
28
+      </customErrors>
29
+    -->
30
+  </system.web>
31
+</configuration>

+ 53
- 0
CacheControl-test/Web.config Datei anzeigen

@@ -0,0 +1,53 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<!--
3
+  For more information on how to configure your ASP.NET application, please visit
4
+  http://go.microsoft.com/fwlink/?LinkId=301879
5
+  -->
6
+<configuration>
7
+  <appSettings>
8
+    <add key="webpages:Version" value="3.0.0.0" />
9
+    <add key="webpages:Enabled" value="false" />
10
+    <add key="ClientValidationEnabled" value="true" />
11
+    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
12
+  </appSettings>
13
+  <system.web>
14
+    <compilation debug="true" targetFramework="4.5" />
15
+    <httpRuntime targetFramework="4.5" />
16
+  </system.web>
17
+  
18
+  <runtime>
19
+    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
20
+      <dependentAssembly>
21
+        <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
22
+        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
23
+      </dependentAssembly>
24
+      <dependentAssembly>
25
+        <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
26
+        <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
27
+      </dependentAssembly>
28
+      <dependentAssembly>
29
+        <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
30
+        <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
31
+      </dependentAssembly>
32
+      <dependentAssembly>
33
+        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
34
+        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
35
+      </dependentAssembly>
36
+      <dependentAssembly>
37
+        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
38
+        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
39
+      </dependentAssembly>
40
+      <dependentAssembly>
41
+        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
42
+        <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
43
+      </dependentAssembly>
44
+    </assemblyBinding>
45
+  </runtime>
46
+<system.webServer>
47
+    <handlers>
48
+      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
49
+      <remove name="OPTIONSVerbHandler" />
50
+      <remove name="TRACEVerbHandler" />
51
+      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
52
+    </handlers>
53
+  </system.webServer></configuration>

BIN
CacheControl-test/favicon.ico Datei anzeigen


BIN
CacheControl-test/fonts/glyphicons-halflings-regular.eot Datei anzeigen


+ 288
- 0
CacheControl-test/fonts/glyphicons-halflings-regular.svg Datei anzeigen

@@ -0,0 +1,288 @@
1
+<?xml version="1.0" standalone="no"?>
2
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+<svg xmlns="http://www.w3.org/2000/svg">
4
+<metadata></metadata>
5
+<defs>
6
+<font id="glyphicons_halflingsregular" horiz-adv-x="1200" >
7
+<font-face units-per-em="1200" ascent="960" descent="-240" />
8
+<missing-glyph horiz-adv-x="500" />
9
+<glyph horiz-adv-x="0" />
10
+<glyph horiz-adv-x="400" />
11
+<glyph unicode=" " />
12
+<glyph unicode="*" d="M600 1100q15 0 34 -1.5t30 -3.5l11 -1q10 -2 17.5 -10.5t7.5 -18.5v-224l158 158q7 7 18 8t19 -6l106 -106q7 -8 6 -19t-8 -18l-158 -158h224q10 0 18.5 -7.5t10.5 -17.5q6 -41 6 -75q0 -15 -1.5 -34t-3.5 -30l-1 -11q-2 -10 -10.5 -17.5t-18.5 -7.5h-224l158 -158 q7 -7 8 -18t-6 -19l-106 -106q-8 -7 -19 -6t-18 8l-158 158v-224q0 -10 -7.5 -18.5t-17.5 -10.5q-41 -6 -75 -6q-15 0 -34 1.5t-30 3.5l-11 1q-10 2 -17.5 10.5t-7.5 18.5v224l-158 -158q-7 -7 -18 -8t-19 6l-106 106q-7 8 -6 19t8 18l158 158h-224q-10 0 -18.5 7.5 t-10.5 17.5q-6 41 -6 75q0 15 1.5 34t3.5 30l1 11q2 10 10.5 17.5t18.5 7.5h224l-158 158q-7 7 -8 18t6 19l106 106q8 7 19 6t18 -8l158 -158v224q0 10 7.5 18.5t17.5 10.5q41 6 75 6z" />
13
+<glyph unicode="+" d="M450 1100h200q21 0 35.5 -14.5t14.5 -35.5v-350h350q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-350v-350q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v350h-350q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5 h350v350q0 21 14.5 35.5t35.5 14.5z" />
14
+<glyph unicode="&#xa0;" />
15
+<glyph unicode="&#xa5;" d="M825 1100h250q10 0 12.5 -5t-5.5 -13l-364 -364q-6 -6 -11 -18h268q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-125v-100h275q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-125v-174q0 -11 -7.5 -18.5t-18.5 -7.5h-148q-11 0 -18.5 7.5t-7.5 18.5v174 h-275q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h125v100h-275q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h118q-5 12 -11 18l-364 364q-8 8 -5.5 13t12.5 5h250q25 0 43 -18l164 -164q8 -8 18 -8t18 8l164 164q18 18 43 18z" />
16
+<glyph unicode="&#x2000;" horiz-adv-x="650" />
17
+<glyph unicode="&#x2001;" horiz-adv-x="1300" />
18
+<glyph unicode="&#x2002;" horiz-adv-x="650" />
19
+<glyph unicode="&#x2003;" horiz-adv-x="1300" />
20
+<glyph unicode="&#x2004;" horiz-adv-x="433" />
21
+<glyph unicode="&#x2005;" horiz-adv-x="325" />
22
+<glyph unicode="&#x2006;" horiz-adv-x="216" />
23
+<glyph unicode="&#x2007;" horiz-adv-x="216" />
24
+<glyph unicode="&#x2008;" horiz-adv-x="162" />
25
+<glyph unicode="&#x2009;" horiz-adv-x="260" />
26
+<glyph unicode="&#x200a;" horiz-adv-x="72" />
27
+<glyph unicode="&#x202f;" horiz-adv-x="260" />
28
+<glyph unicode="&#x205f;" horiz-adv-x="325" />
29
+<glyph unicode="&#x20ac;" d="M744 1198q242 0 354 -189q60 -104 66 -209h-181q0 45 -17.5 82.5t-43.5 61.5t-58 40.5t-60.5 24t-51.5 7.5q-19 0 -40.5 -5.5t-49.5 -20.5t-53 -38t-49 -62.5t-39 -89.5h379l-100 -100h-300q-6 -50 -6 -100h406l-100 -100h-300q9 -74 33 -132t52.5 -91t61.5 -54.5t59 -29 t47 -7.5q22 0 50.5 7.5t60.5 24.5t58 41t43.5 61t17.5 80h174q-30 -171 -128 -278q-107 -117 -274 -117q-206 0 -324 158q-36 48 -69 133t-45 204h-217l100 100h112q1 47 6 100h-218l100 100h134q20 87 51 153.5t62 103.5q117 141 297 141z" />
30
+<glyph unicode="&#x20bd;" d="M428 1200h350q67 0 120 -13t86 -31t57 -49.5t35 -56.5t17 -64.5t6.5 -60.5t0.5 -57v-16.5v-16.5q0 -36 -0.5 -57t-6.5 -61t-17 -65t-35 -57t-57 -50.5t-86 -31.5t-120 -13h-178l-2 -100h288q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-138v-175q0 -11 -5.5 -18 t-15.5 -7h-149q-10 0 -17.5 7.5t-7.5 17.5v175h-267q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h117v100h-267q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h117v475q0 10 7.5 17.5t17.5 7.5zM600 1000v-300h203q64 0 86.5 33t22.5 119q0 84 -22.5 116t-86.5 32h-203z" />
31
+<glyph unicode="&#x2212;" d="M250 700h800q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5z" />
32
+<glyph unicode="&#x231b;" d="M1000 1200v-150q0 -21 -14.5 -35.5t-35.5 -14.5h-50v-100q0 -91 -49.5 -165.5t-130.5 -109.5q81 -35 130.5 -109.5t49.5 -165.5v-150h50q21 0 35.5 -14.5t14.5 -35.5v-150h-800v150q0 21 14.5 35.5t35.5 14.5h50v150q0 91 49.5 165.5t130.5 109.5q-81 35 -130.5 109.5 t-49.5 165.5v100h-50q-21 0 -35.5 14.5t-14.5 35.5v150h800zM400 1000v-100q0 -60 32.5 -109.5t87.5 -73.5q28 -12 44 -37t16 -55t-16 -55t-44 -37q-55 -24 -87.5 -73.5t-32.5 -109.5v-150h400v150q0 60 -32.5 109.5t-87.5 73.5q-28 12 -44 37t-16 55t16 55t44 37 q55 24 87.5 73.5t32.5 109.5v100h-400z" />
33
+<glyph unicode="&#x25fc;" horiz-adv-x="500" d="M0 0z" />
34
+<glyph unicode="&#x2601;" d="M503 1089q110 0 200.5 -59.5t134.5 -156.5q44 14 90 14q120 0 205 -86.5t85 -206.5q0 -121 -85 -207.5t-205 -86.5h-750q-79 0 -135.5 57t-56.5 137q0 69 42.5 122.5t108.5 67.5q-2 12 -2 37q0 153 108 260.5t260 107.5z" />
35
+<glyph unicode="&#x26fa;" d="M774 1193.5q16 -9.5 20.5 -27t-5.5 -33.5l-136 -187l467 -746h30q20 0 35 -18.5t15 -39.5v-42h-1200v42q0 21 15 39.5t35 18.5h30l468 746l-135 183q-10 16 -5.5 34t20.5 28t34 5.5t28 -20.5l111 -148l112 150q9 16 27 20.5t34 -5zM600 200h377l-182 112l-195 534v-646z " />
36
+<glyph unicode="&#x2709;" d="M25 1100h1150q10 0 12.5 -5t-5.5 -13l-564 -567q-8 -8 -18 -8t-18 8l-564 567q-8 8 -5.5 13t12.5 5zM18 882l264 -264q8 -8 8 -18t-8 -18l-264 -264q-8 -8 -13 -5.5t-5 12.5v550q0 10 5 12.5t13 -5.5zM918 618l264 264q8 8 13 5.5t5 -12.5v-550q0 -10 -5 -12.5t-13 5.5 l-264 264q-8 8 -8 18t8 18zM818 482l364 -364q8 -8 5.5 -13t-12.5 -5h-1150q-10 0 -12.5 5t5.5 13l364 364q8 8 18 8t18 -8l164 -164q8 -8 18 -8t18 8l164 164q8 8 18 8t18 -8z" />
37
+<glyph unicode="&#x270f;" d="M1011 1210q19 0 33 -13l153 -153q13 -14 13 -33t-13 -33l-99 -92l-214 214l95 96q13 14 32 14zM1013 800l-615 -614l-214 214l614 614zM317 96l-333 -112l110 335z" />
38
+<glyph unicode="&#xe001;" d="M700 650v-550h250q21 0 35.5 -14.5t14.5 -35.5v-50h-800v50q0 21 14.5 35.5t35.5 14.5h250v550l-500 550h1200z" />
39
+<glyph unicode="&#xe002;" d="M368 1017l645 163q39 15 63 0t24 -49v-831q0 -55 -41.5 -95.5t-111.5 -63.5q-79 -25 -147 -4.5t-86 75t25.5 111.5t122.5 82q72 24 138 8v521l-600 -155v-606q0 -42 -44 -90t-109 -69q-79 -26 -147 -5.5t-86 75.5t25.5 111.5t122.5 82.5q72 24 138 7v639q0 38 14.5 59 t53.5 34z" />
40
+<glyph unicode="&#xe003;" d="M500 1191q100 0 191 -39t156.5 -104.5t104.5 -156.5t39 -191l-1 -2l1 -5q0 -141 -78 -262l275 -274q23 -26 22.5 -44.5t-22.5 -42.5l-59 -58q-26 -20 -46.5 -20t-39.5 20l-275 274q-119 -77 -261 -77l-5 1l-2 -1q-100 0 -191 39t-156.5 104.5t-104.5 156.5t-39 191 t39 191t104.5 156.5t156.5 104.5t191 39zM500 1022q-88 0 -162 -43t-117 -117t-43 -162t43 -162t117 -117t162 -43t162 43t117 117t43 162t-43 162t-117 117t-162 43z" />
41
+<glyph unicode="&#xe005;" d="M649 949q48 68 109.5 104t121.5 38.5t118.5 -20t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-150 152.5t-126.5 127.5t-93.5 124.5t-33.5 117.5q0 64 28 123t73 100.5t104 64t119 20 t120.5 -38.5t104.5 -104z" />
42
+<glyph unicode="&#xe006;" d="M407 800l131 353q7 19 17.5 19t17.5 -19l129 -353h421q21 0 24 -8.5t-14 -20.5l-342 -249l130 -401q7 -20 -0.5 -25.5t-24.5 6.5l-343 246l-342 -247q-17 -12 -24.5 -6.5t-0.5 25.5l130 400l-347 251q-17 12 -14 20.5t23 8.5h429z" />
43
+<glyph unicode="&#xe007;" d="M407 800l131 353q7 19 17.5 19t17.5 -19l129 -353h421q21 0 24 -8.5t-14 -20.5l-342 -249l130 -401q7 -20 -0.5 -25.5t-24.5 6.5l-343 246l-342 -247q-17 -12 -24.5 -6.5t-0.5 25.5l130 400l-347 251q-17 12 -14 20.5t23 8.5h429zM477 700h-240l197 -142l-74 -226 l193 139l195 -140l-74 229l192 140h-234l-78 211z" />
44
+<glyph unicode="&#xe008;" d="M600 1200q124 0 212 -88t88 -212v-250q0 -46 -31 -98t-69 -52v-75q0 -10 6 -21.5t15 -17.5l358 -230q9 -5 15 -16.5t6 -21.5v-93q0 -10 -7.5 -17.5t-17.5 -7.5h-1150q-10 0 -17.5 7.5t-7.5 17.5v93q0 10 6 21.5t15 16.5l358 230q9 6 15 17.5t6 21.5v75q-38 0 -69 52 t-31 98v250q0 124 88 212t212 88z" />
45
+<glyph unicode="&#xe009;" d="M25 1100h1150q10 0 17.5 -7.5t7.5 -17.5v-1050q0 -10 -7.5 -17.5t-17.5 -7.5h-1150q-10 0 -17.5 7.5t-7.5 17.5v1050q0 10 7.5 17.5t17.5 7.5zM100 1000v-100h100v100h-100zM875 1000h-550q-10 0 -17.5 -7.5t-7.5 -17.5v-350q0 -10 7.5 -17.5t17.5 -7.5h550 q10 0 17.5 7.5t7.5 17.5v350q0 10 -7.5 17.5t-17.5 7.5zM1000 1000v-100h100v100h-100zM100 800v-100h100v100h-100zM1000 800v-100h100v100h-100zM100 600v-100h100v100h-100zM1000 600v-100h100v100h-100zM875 500h-550q-10 0 -17.5 -7.5t-7.5 -17.5v-350q0 -10 7.5 -17.5 t17.5 -7.5h550q10 0 17.5 7.5t7.5 17.5v350q0 10 -7.5 17.5t-17.5 7.5zM100 400v-100h100v100h-100zM1000 400v-100h100v100h-100zM100 200v-100h100v100h-100zM1000 200v-100h100v100h-100z" />
46
+<glyph unicode="&#xe010;" d="M50 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM650 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5zM50 500h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM650 500h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
47
+<glyph unicode="&#xe011;" d="M50 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5zM850 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM850 700h200q21 0 35.5 -14.5t14.5 -35.5v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 300h200 q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM850 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5 t35.5 14.5z" />
48
+<glyph unicode="&#xe012;" d="M50 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 1100h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5zM50 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 700h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 300h700q21 0 35.5 -14.5t14.5 -35.5v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5z" />
49
+<glyph unicode="&#xe013;" d="M465 477l571 571q8 8 18 8t17 -8l177 -177q8 -7 8 -17t-8 -18l-783 -784q-7 -8 -17.5 -8t-17.5 8l-384 384q-8 8 -8 18t8 17l177 177q7 8 17 8t18 -8l171 -171q7 -7 18 -7t18 7z" />
50
+<glyph unicode="&#xe014;" d="M904 1083l178 -179q8 -8 8 -18.5t-8 -17.5l-267 -268l267 -268q8 -7 8 -17.5t-8 -18.5l-178 -178q-8 -8 -18.5 -8t-17.5 8l-268 267l-268 -267q-7 -8 -17.5 -8t-18.5 8l-178 178q-8 8 -8 18.5t8 17.5l267 268l-267 268q-8 7 -8 17.5t8 18.5l178 178q8 8 18.5 8t17.5 -8 l268 -267l268 268q7 7 17.5 7t18.5 -7z" />
51
+<glyph unicode="&#xe015;" d="M507 1177q98 0 187.5 -38.5t154.5 -103.5t103.5 -154.5t38.5 -187.5q0 -141 -78 -262l300 -299q8 -8 8 -18.5t-8 -18.5l-109 -108q-7 -8 -17.5 -8t-18.5 8l-300 299q-119 -77 -261 -77q-98 0 -188 38.5t-154.5 103t-103 154.5t-38.5 188t38.5 187.5t103 154.5 t154.5 103.5t188 38.5zM506.5 1023q-89.5 0 -165.5 -44t-120 -120.5t-44 -166t44 -165.5t120 -120t165.5 -44t166 44t120.5 120t44 165.5t-44 166t-120.5 120.5t-166 44zM425 900h150q10 0 17.5 -7.5t7.5 -17.5v-75h75q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5 t-17.5 -7.5h-75v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-75q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h75v75q0 10 7.5 17.5t17.5 7.5z" />
52
+<glyph unicode="&#xe016;" d="M507 1177q98 0 187.5 -38.5t154.5 -103.5t103.5 -154.5t38.5 -187.5q0 -141 -78 -262l300 -299q8 -8 8 -18.5t-8 -18.5l-109 -108q-7 -8 -17.5 -8t-18.5 8l-300 299q-119 -77 -261 -77q-98 0 -188 38.5t-154.5 103t-103 154.5t-38.5 188t38.5 187.5t103 154.5 t154.5 103.5t188 38.5zM506.5 1023q-89.5 0 -165.5 -44t-120 -120.5t-44 -166t44 -165.5t120 -120t165.5 -44t166 44t120.5 120t44 165.5t-44 166t-120.5 120.5t-166 44zM325 800h350q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-350q-10 0 -17.5 7.5 t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
53
+<glyph unicode="&#xe017;" d="M550 1200h100q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM800 975v166q167 -62 272 -209.5t105 -331.5q0 -117 -45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5 t-184.5 123t-123 184.5t-45.5 224q0 184 105 331.5t272 209.5v-166q-103 -55 -165 -155t-62 -220q0 -116 57 -214.5t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5q0 120 -62 220t-165 155z" />
54
+<glyph unicode="&#xe018;" d="M1025 1200h150q10 0 17.5 -7.5t7.5 -17.5v-1150q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v1150q0 10 7.5 17.5t17.5 7.5zM725 800h150q10 0 17.5 -7.5t7.5 -17.5v-750q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v750 q0 10 7.5 17.5t17.5 7.5zM425 500h150q10 0 17.5 -7.5t7.5 -17.5v-450q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v450q0 10 7.5 17.5t17.5 7.5zM125 300h150q10 0 17.5 -7.5t7.5 -17.5v-250q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5 v250q0 10 7.5 17.5t17.5 7.5z" />
55
+<glyph unicode="&#xe019;" d="M600 1174q33 0 74 -5l38 -152l5 -1q49 -14 94 -39l5 -2l134 80q61 -48 104 -105l-80 -134l3 -5q25 -44 39 -93l1 -6l152 -38q5 -43 5 -73q0 -34 -5 -74l-152 -38l-1 -6q-15 -49 -39 -93l-3 -5l80 -134q-48 -61 -104 -105l-134 81l-5 -3q-44 -25 -94 -39l-5 -2l-38 -151 q-43 -5 -74 -5q-33 0 -74 5l-38 151l-5 2q-49 14 -94 39l-5 3l-134 -81q-60 48 -104 105l80 134l-3 5q-25 45 -38 93l-2 6l-151 38q-6 42 -6 74q0 33 6 73l151 38l2 6q13 48 38 93l3 5l-80 134q47 61 105 105l133 -80l5 2q45 25 94 39l5 1l38 152q43 5 74 5zM600 815 q-89 0 -152 -63t-63 -151.5t63 -151.5t152 -63t152 63t63 151.5t-63 151.5t-152 63z" />
56
+<glyph unicode="&#xe020;" d="M500 1300h300q41 0 70.5 -29.5t29.5 -70.5v-100h275q10 0 17.5 -7.5t7.5 -17.5v-75h-1100v75q0 10 7.5 17.5t17.5 7.5h275v100q0 41 29.5 70.5t70.5 29.5zM500 1200v-100h300v100h-300zM1100 900v-800q0 -41 -29.5 -70.5t-70.5 -29.5h-700q-41 0 -70.5 29.5t-29.5 70.5 v800h900zM300 800v-700h100v700h-100zM500 800v-700h100v700h-100zM700 800v-700h100v700h-100zM900 800v-700h100v700h-100z" />
57
+<glyph unicode="&#xe021;" d="M18 618l620 608q8 7 18.5 7t17.5 -7l608 -608q8 -8 5.5 -13t-12.5 -5h-175v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v375h-300v-375q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v575h-175q-10 0 -12.5 5t5.5 13z" />
58
+<glyph unicode="&#xe022;" d="M600 1200v-400q0 -41 29.5 -70.5t70.5 -29.5h300v-650q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v1100q0 21 14.5 35.5t35.5 14.5h450zM1000 800h-250q-21 0 -35.5 14.5t-14.5 35.5v250z" />
59
+<glyph unicode="&#xe023;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM525 900h50q10 0 17.5 -7.5t7.5 -17.5v-275h175q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5z" />
60
+<glyph unicode="&#xe024;" d="M1300 0h-538l-41 400h-242l-41 -400h-538l431 1200h209l-21 -300h162l-20 300h208zM515 800l-27 -300h224l-27 300h-170z" />
61
+<glyph unicode="&#xe025;" d="M550 1200h200q21 0 35.5 -14.5t14.5 -35.5v-450h191q20 0 25.5 -11.5t-7.5 -27.5l-327 -400q-13 -16 -32 -16t-32 16l-327 400q-13 16 -7.5 27.5t25.5 11.5h191v450q0 21 14.5 35.5t35.5 14.5zM1125 400h50q10 0 17.5 -7.5t7.5 -17.5v-350q0 -10 -7.5 -17.5t-17.5 -7.5 h-1050q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h50q10 0 17.5 -7.5t7.5 -17.5v-175h900v175q0 10 7.5 17.5t17.5 7.5z" />
62
+<glyph unicode="&#xe026;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM525 900h150q10 0 17.5 -7.5t7.5 -17.5v-275h137q21 0 26 -11.5t-8 -27.5l-223 -275q-13 -16 -32 -16t-32 16l-223 275q-13 16 -8 27.5t26 11.5h137v275q0 10 7.5 17.5t17.5 7.5z " />
63
+<glyph unicode="&#xe027;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM632 914l223 -275q13 -16 8 -27.5t-26 -11.5h-137v-275q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v275h-137q-21 0 -26 11.5t8 27.5l223 275q13 16 32 16 t32 -16z" />
64
+<glyph unicode="&#xe028;" d="M225 1200h750q10 0 19.5 -7t12.5 -17l186 -652q7 -24 7 -49v-425q0 -12 -4 -27t-9 -17q-12 -6 -37 -6h-1100q-12 0 -27 4t-17 8q-6 13 -6 38l1 425q0 25 7 49l185 652q3 10 12.5 17t19.5 7zM878 1000h-556q-10 0 -19 -7t-11 -18l-87 -450q-2 -11 4 -18t16 -7h150 q10 0 19.5 -7t11.5 -17l38 -152q2 -10 11.5 -17t19.5 -7h250q10 0 19.5 7t11.5 17l38 152q2 10 11.5 17t19.5 7h150q10 0 16 7t4 18l-87 450q-2 11 -11 18t-19 7z" />
65
+<glyph unicode="&#xe029;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM540 820l253 -190q17 -12 17 -30t-17 -30l-253 -190q-16 -12 -28 -6.5t-12 26.5v400q0 21 12 26.5t28 -6.5z" />
66
+<glyph unicode="&#xe030;" d="M947 1060l135 135q7 7 12.5 5t5.5 -13v-362q0 -10 -7.5 -17.5t-17.5 -7.5h-362q-11 0 -13 5.5t5 12.5l133 133q-109 76 -238 76q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5h150q0 -117 -45.5 -224 t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5q192 0 347 -117z" />
67
+<glyph unicode="&#xe031;" d="M947 1060l135 135q7 7 12.5 5t5.5 -13v-361q0 -11 -7.5 -18.5t-18.5 -7.5h-361q-11 0 -13 5.5t5 12.5l134 134q-110 75 -239 75q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5h-150q0 117 45.5 224t123 184.5t184.5 123t224 45.5q192 0 347 -117zM1027 600h150 q0 -117 -45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5q-192 0 -348 118l-134 -134q-7 -8 -12.5 -5.5t-5.5 12.5v360q0 11 7.5 18.5t18.5 7.5h360q10 0 12.5 -5.5t-5.5 -12.5l-133 -133q110 -76 240 -76q116 0 214.5 57t155.5 155.5t57 214.5z" />
68
+<glyph unicode="&#xe032;" d="M125 1200h1050q10 0 17.5 -7.5t7.5 -17.5v-1150q0 -10 -7.5 -17.5t-17.5 -7.5h-1050q-10 0 -17.5 7.5t-7.5 17.5v1150q0 10 7.5 17.5t17.5 7.5zM1075 1000h-850q-10 0 -17.5 -7.5t-7.5 -17.5v-850q0 -10 7.5 -17.5t17.5 -7.5h850q10 0 17.5 7.5t7.5 17.5v850 q0 10 -7.5 17.5t-17.5 7.5zM325 900h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 900h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 700h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 700h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 500h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 500h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 300h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 300h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5z" />
69
+<glyph unicode="&#xe033;" d="M900 800v200q0 83 -58.5 141.5t-141.5 58.5h-300q-82 0 -141 -59t-59 -141v-200h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h900q41 0 70.5 29.5t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5h-100zM400 800v150q0 21 15 35.5t35 14.5h200 q20 0 35 -14.5t15 -35.5v-150h-300z" />
70
+<glyph unicode="&#xe034;" d="M125 1100h50q10 0 17.5 -7.5t7.5 -17.5v-1075h-100v1075q0 10 7.5 17.5t17.5 7.5zM1075 1052q4 0 9 -2q16 -6 16 -23v-421q0 -6 -3 -12q-33 -59 -66.5 -99t-65.5 -58t-56.5 -24.5t-52.5 -6.5q-26 0 -57.5 6.5t-52.5 13.5t-60 21q-41 15 -63 22.5t-57.5 15t-65.5 7.5 q-85 0 -160 -57q-7 -5 -15 -5q-6 0 -11 3q-14 7 -14 22v438q22 55 82 98.5t119 46.5q23 2 43 0.5t43 -7t32.5 -8.5t38 -13t32.5 -11q41 -14 63.5 -21t57 -14t63.5 -7q103 0 183 87q7 8 18 8z" />
71
+<glyph unicode="&#xe035;" d="M600 1175q116 0 227 -49.5t192.5 -131t131 -192.5t49.5 -227v-300q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v300q0 127 -70.5 231.5t-184.5 161.5t-245 57t-245 -57t-184.5 -161.5t-70.5 -231.5v-300q0 -10 -7.5 -17.5t-17.5 -7.5h-50 q-10 0 -17.5 7.5t-7.5 17.5v300q0 116 49.5 227t131 192.5t192.5 131t227 49.5zM220 500h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460q0 8 6 14t14 6zM820 500h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460 q0 8 6 14t14 6z" />
72
+<glyph unicode="&#xe036;" d="M321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM900 668l120 120q7 7 17 7t17 -7l34 -34q7 -7 7 -17t-7 -17l-120 -120l120 -120q7 -7 7 -17 t-7 -17l-34 -34q-7 -7 -17 -7t-17 7l-120 119l-120 -119q-7 -7 -17 -7t-17 7l-34 34q-7 7 -7 17t7 17l119 120l-119 120q-7 7 -7 17t7 17l34 34q7 8 17 8t17 -8z" />
73
+<glyph unicode="&#xe037;" d="M321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM766 900h4q10 -1 16 -10q96 -129 96 -290q0 -154 -90 -281q-6 -9 -17 -10l-3 -1q-9 0 -16 6 l-29 23q-7 7 -8.5 16.5t4.5 17.5q72 103 72 229q0 132 -78 238q-6 8 -4.5 18t9.5 17l29 22q7 5 15 5z" />
74
+<glyph unicode="&#xe038;" d="M967 1004h3q11 -1 17 -10q135 -179 135 -396q0 -105 -34 -206.5t-98 -185.5q-7 -9 -17 -10h-3q-9 0 -16 6l-42 34q-8 6 -9 16t5 18q111 150 111 328q0 90 -29.5 176t-84.5 157q-6 9 -5 19t10 16l42 33q7 5 15 5zM321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5 t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM766 900h4q10 -1 16 -10q96 -129 96 -290q0 -154 -90 -281q-6 -9 -17 -10l-3 -1q-9 0 -16 6l-29 23q-7 7 -8.5 16.5t4.5 17.5q72 103 72 229q0 132 -78 238 q-6 8 -4.5 18.5t9.5 16.5l29 22q7 5 15 5z" />
75
+<glyph unicode="&#xe039;" d="M500 900h100v-100h-100v-100h-400v-100h-100v600h500v-300zM1200 700h-200v-100h200v-200h-300v300h-200v300h-100v200h600v-500zM100 1100v-300h300v300h-300zM800 1100v-300h300v300h-300zM300 900h-100v100h100v-100zM1000 900h-100v100h100v-100zM300 500h200v-500 h-500v500h200v100h100v-100zM800 300h200v-100h-100v-100h-200v100h-100v100h100v200h-200v100h300v-300zM100 400v-300h300v300h-300zM300 200h-100v100h100v-100zM1200 200h-100v100h100v-100zM700 0h-100v100h100v-100zM1200 0h-300v100h300v-100z" />
76
+<glyph unicode="&#xe040;" d="M100 200h-100v1000h100v-1000zM300 200h-100v1000h100v-1000zM700 200h-200v1000h200v-1000zM900 200h-100v1000h100v-1000zM1200 200h-200v1000h200v-1000zM400 0h-300v100h300v-100zM600 0h-100v91h100v-91zM800 0h-100v91h100v-91zM1100 0h-200v91h200v-91z" />
77
+<glyph unicode="&#xe041;" d="M500 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-682 682l1 475q0 10 7.5 17.5t17.5 7.5h474zM319.5 1024.5q-29.5 29.5 -71 29.5t-71 -29.5t-29.5 -71.5t29.5 -71.5t71 -29.5t71 29.5t29.5 71.5t-29.5 71.5z" />
78
+<glyph unicode="&#xe042;" d="M500 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-682 682l1 475q0 10 7.5 17.5t17.5 7.5h474zM800 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-56 56l424 426l-700 700h150zM319.5 1024.5q-29.5 29.5 -71 29.5t-71 -29.5 t-29.5 -71.5t29.5 -71.5t71 -29.5t71 29.5t29.5 71.5t-29.5 71.5z" />
79
+<glyph unicode="&#xe043;" d="M300 1200h825q75 0 75 -75v-900q0 -25 -18 -43l-64 -64q-8 -8 -13 -5.5t-5 12.5v950q0 10 -7.5 17.5t-17.5 7.5h-700q-25 0 -43 -18l-64 -64q-8 -8 -5.5 -13t12.5 -5h700q10 0 17.5 -7.5t7.5 -17.5v-950q0 -10 -7.5 -17.5t-17.5 -7.5h-850q-10 0 -17.5 7.5t-7.5 17.5v975 q0 25 18 43l139 139q18 18 43 18z" />
80
+<glyph unicode="&#xe044;" d="M250 1200h800q21 0 35.5 -14.5t14.5 -35.5v-1150l-450 444l-450 -445v1151q0 21 14.5 35.5t35.5 14.5z" />
81
+<glyph unicode="&#xe045;" d="M822 1200h-444q-11 0 -19 -7.5t-9 -17.5l-78 -301q-7 -24 7 -45l57 -108q6 -9 17.5 -15t21.5 -6h450q10 0 21.5 6t17.5 15l62 108q14 21 7 45l-83 301q-1 10 -9 17.5t-19 7.5zM1175 800h-150q-10 0 -21 -6.5t-15 -15.5l-78 -156q-4 -9 -15 -15.5t-21 -6.5h-550 q-10 0 -21 6.5t-15 15.5l-78 156q-4 9 -15 15.5t-21 6.5h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-650q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h750q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5 t7.5 17.5v650q0 10 -7.5 17.5t-17.5 7.5zM850 200h-500q-10 0 -19.5 -7t-11.5 -17l-38 -152q-2 -10 3.5 -17t15.5 -7h600q10 0 15.5 7t3.5 17l-38 152q-2 10 -11.5 17t-19.5 7z" />
82
+<glyph unicode="&#xe046;" d="M500 1100h200q56 0 102.5 -20.5t72.5 -50t44 -59t25 -50.5l6 -20h150q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5h150q2 8 6.5 21.5t24 48t45 61t72 48t102.5 21.5zM900 800v-100 h100v100h-100zM600 730q-95 0 -162.5 -67.5t-67.5 -162.5t67.5 -162.5t162.5 -67.5t162.5 67.5t67.5 162.5t-67.5 162.5t-162.5 67.5zM600 603q43 0 73 -30t30 -73t-30 -73t-73 -30t-73 30t-30 73t30 73t73 30z" />
83
+<glyph unicode="&#xe047;" d="M681 1199l385 -998q20 -50 60 -92q18 -19 36.5 -29.5t27.5 -11.5l10 -2v-66h-417v66q53 0 75 43.5t5 88.5l-82 222h-391q-58 -145 -92 -234q-11 -34 -6.5 -57t25.5 -37t46 -20t55 -6v-66h-365v66q56 24 84 52q12 12 25 30.5t20 31.5l7 13l399 1006h93zM416 521h340 l-162 457z" />
84
+<glyph unicode="&#xe048;" d="M753 641q5 -1 14.5 -4.5t36 -15.5t50.5 -26.5t53.5 -40t50.5 -54.5t35.5 -70t14.5 -87q0 -67 -27.5 -125.5t-71.5 -97.5t-98.5 -66.5t-108.5 -40.5t-102 -13h-500v89q41 7 70.5 32.5t29.5 65.5v827q0 24 -0.5 34t-3.5 24t-8.5 19.5t-17 13.5t-28 12.5t-42.5 11.5v71 l471 -1q57 0 115.5 -20.5t108 -57t80.5 -94t31 -124.5q0 -51 -15.5 -96.5t-38 -74.5t-45 -50.5t-38.5 -30.5zM400 700h139q78 0 130.5 48.5t52.5 122.5q0 41 -8.5 70.5t-29.5 55.5t-62.5 39.5t-103.5 13.5h-118v-350zM400 200h216q80 0 121 50.5t41 130.5q0 90 -62.5 154.5 t-156.5 64.5h-159v-400z" />
85
+<glyph unicode="&#xe049;" d="M877 1200l2 -57q-83 -19 -116 -45.5t-40 -66.5l-132 -839q-9 -49 13 -69t96 -26v-97h-500v97q186 16 200 98l173 832q3 17 3 30t-1.5 22.5t-9 17.5t-13.5 12.5t-21.5 10t-26 8.5t-33.5 10q-13 3 -19 5v57h425z" />
86
+<glyph unicode="&#xe050;" d="M1300 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-850q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v850h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM175 1000h-75v-800h75l-125 -167l-125 167h75v800h-75l125 167z" />
87
+<glyph unicode="&#xe051;" d="M1100 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-650q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v650h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM1167 50l-167 -125v75h-800v-75l-167 125l167 125v-75h800v75z" />
88
+<glyph unicode="&#xe052;" d="M50 1100h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 500h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
89
+<glyph unicode="&#xe053;" d="M250 1100h700q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM250 500h700q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
90
+<glyph unicode="&#xe054;" d="M500 950v100q0 21 14.5 35.5t35.5 14.5h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5zM100 650v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000 q-21 0 -35.5 14.5t-14.5 35.5zM300 350v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5zM0 50v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100 q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5z" />
91
+<glyph unicode="&#xe055;" d="M50 1100h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 500h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
92
+<glyph unicode="&#xe056;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 1100h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 800h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 500h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 500h800q21 0 35.5 -14.5t14.5 -35.5v-100 q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 200h800 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
93
+<glyph unicode="&#xe057;" d="M400 0h-100v1100h100v-1100zM550 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM550 800h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM267 550l-167 -125v75h-200v100h200v75zM550 500h300q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM550 200h600 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
94
+<glyph unicode="&#xe058;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM900 0h-100v1100h100v-1100zM50 800h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM1100 600h200v-100h-200v-75l-167 125l167 125v-75zM50 500h300q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h600 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
95
+<glyph unicode="&#xe059;" d="M75 1000h750q31 0 53 -22t22 -53v-650q0 -31 -22 -53t-53 -22h-750q-31 0 -53 22t-22 53v650q0 31 22 53t53 22zM1200 300l-300 300l300 300v-600z" />
96
+<glyph unicode="&#xe060;" d="M44 1100h1112q18 0 31 -13t13 -31v-1012q0 -18 -13 -31t-31 -13h-1112q-18 0 -31 13t-13 31v1012q0 18 13 31t31 13zM100 1000v-737l247 182l298 -131l-74 156l293 318l236 -288v500h-1000zM342 884q56 0 95 -39t39 -94.5t-39 -95t-95 -39.5t-95 39.5t-39 95t39 94.5 t95 39z" />
97
+<glyph unicode="&#xe062;" d="M648 1169q117 0 216 -60t156.5 -161t57.5 -218q0 -115 -70 -258q-69 -109 -158 -225.5t-143 -179.5l-54 -62q-9 8 -25.5 24.5t-63.5 67.5t-91 103t-98.5 128t-95.5 148q-60 132 -60 249q0 88 34 169.5t91.5 142t137 96.5t166.5 36zM652.5 974q-91.5 0 -156.5 -65 t-65 -157t65 -156.5t156.5 -64.5t156.5 64.5t65 156.5t-65 157t-156.5 65z" />
98
+<glyph unicode="&#xe063;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 173v854q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57z" />
99
+<glyph unicode="&#xe064;" d="M554 1295q21 -72 57.5 -143.5t76 -130t83 -118t82.5 -117t70 -116t49.5 -126t18.5 -136.5q0 -71 -25.5 -135t-68.5 -111t-99 -82t-118.5 -54t-125.5 -23q-84 5 -161.5 34t-139.5 78.5t-99 125t-37 164.5q0 69 18 136.5t49.5 126.5t69.5 116.5t81.5 117.5t83.5 119 t76.5 131t58.5 143zM344 710q-23 -33 -43.5 -70.5t-40.5 -102.5t-17 -123q1 -37 14.5 -69.5t30 -52t41 -37t38.5 -24.5t33 -15q21 -7 32 -1t13 22l6 34q2 10 -2.5 22t-13.5 19q-5 4 -14 12t-29.5 40.5t-32.5 73.5q-26 89 6 271q2 11 -6 11q-8 1 -15 -10z" />
100
+<glyph unicode="&#xe065;" d="M1000 1013l108 115q2 1 5 2t13 2t20.5 -1t25 -9.5t28.5 -21.5q22 -22 27 -43t0 -32l-6 -10l-108 -115zM350 1100h400q50 0 105 -13l-187 -187h-368q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v182l200 200v-332 q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5zM1009 803l-362 -362l-161 -50l55 170l355 355z" />
101
+<glyph unicode="&#xe066;" d="M350 1100h361q-164 -146 -216 -200h-195q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5l200 153v-103q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5z M824 1073l339 -301q8 -7 8 -17.5t-8 -17.5l-340 -306q-7 -6 -12.5 -4t-6.5 11v203q-26 1 -54.5 0t-78.5 -7.5t-92 -17.5t-86 -35t-70 -57q10 59 33 108t51.5 81.5t65 58.5t68.5 40.5t67 24.5t56 13.5t40 4.5v210q1 10 6.5 12.5t13.5 -4.5z" />
102
+<glyph unicode="&#xe067;" d="M350 1100h350q60 0 127 -23l-178 -177h-349q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v69l200 200v-219q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5z M643 639l395 395q7 7 17.5 7t17.5 -7l101 -101q7 -7 7 -17.5t-7 -17.5l-531 -532q-7 -7 -17.5 -7t-17.5 7l-248 248q-7 7 -7 17.5t7 17.5l101 101q7 7 17.5 7t17.5 -7l111 -111q8 -7 18 -7t18 7z" />
103
+<glyph unicode="&#xe068;" d="M318 918l264 264q8 8 18 8t18 -8l260 -264q7 -8 4.5 -13t-12.5 -5h-170v-200h200v173q0 10 5 12t13 -5l264 -260q8 -7 8 -17.5t-8 -17.5l-264 -265q-8 -7 -13 -5t-5 12v173h-200v-200h170q10 0 12.5 -5t-4.5 -13l-260 -264q-8 -8 -18 -8t-18 8l-264 264q-8 8 -5.5 13 t12.5 5h175v200h-200v-173q0 -10 -5 -12t-13 5l-264 265q-8 7 -8 17.5t8 17.5l264 260q8 7 13 5t5 -12v-173h200v200h-175q-10 0 -12.5 5t5.5 13z" />
104
+<glyph unicode="&#xe069;" d="M250 1100h100q21 0 35.5 -14.5t14.5 -35.5v-438l464 453q15 14 25.5 10t10.5 -25v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5z" />
105
+<glyph unicode="&#xe070;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-438l464 453q15 14 25.5 10t10.5 -25v-438l464 453q15 14 25.5 10t10.5 -25v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5 t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5z" />
106
+<glyph unicode="&#xe071;" d="M1200 1050v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -10.5 -25t-25.5 10l-492 480q-15 14 -15 35t15 35l492 480q15 14 25.5 10t10.5 -25v-438l464 453q15 14 25.5 10t10.5 -25z" />
107
+<glyph unicode="&#xe072;" d="M243 1074l814 -498q18 -11 18 -26t-18 -26l-814 -498q-18 -11 -30.5 -4t-12.5 28v1000q0 21 12.5 28t30.5 -4z" />
108
+<glyph unicode="&#xe073;" d="M250 1000h200q21 0 35.5 -14.5t14.5 -35.5v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5zM650 1000h200q21 0 35.5 -14.5t14.5 -35.5v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v800 q0 21 14.5 35.5t35.5 14.5z" />
109
+<glyph unicode="&#xe074;" d="M1100 950v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5z" />
110
+<glyph unicode="&#xe075;" d="M500 612v438q0 21 10.5 25t25.5 -10l492 -480q15 -14 15 -35t-15 -35l-492 -480q-15 -14 -25.5 -10t-10.5 25v438l-464 -453q-15 -14 -25.5 -10t-10.5 25v1000q0 21 10.5 25t25.5 -10z" />
111
+<glyph unicode="&#xe076;" d="M1048 1102l100 1q20 0 35 -14.5t15 -35.5l5 -1000q0 -21 -14.5 -35.5t-35.5 -14.5l-100 -1q-21 0 -35.5 14.5t-14.5 35.5l-2 437l-463 -454q-14 -15 -24.5 -10.5t-10.5 25.5l-2 437l-462 -455q-15 -14 -25.5 -9.5t-10.5 24.5l-5 1000q0 21 10.5 25.5t25.5 -10.5l466 -450 l-2 438q0 20 10.5 24.5t25.5 -9.5l466 -451l-2 438q0 21 14.5 35.5t35.5 14.5z" />
112
+<glyph unicode="&#xe077;" d="M850 1100h100q21 0 35.5 -14.5t14.5 -35.5v-1000q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v438l-464 -453q-15 -14 -25.5 -10t-10.5 25v1000q0 21 10.5 25t25.5 -10l464 -453v438q0 21 14.5 35.5t35.5 14.5z" />
113
+<glyph unicode="&#xe078;" d="M686 1081l501 -540q15 -15 10.5 -26t-26.5 -11h-1042q-22 0 -26.5 11t10.5 26l501 540q15 15 36 15t36 -15zM150 400h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
114
+<glyph unicode="&#xe079;" d="M885 900l-352 -353l352 -353l-197 -198l-552 552l552 550z" />
115
+<glyph unicode="&#xe080;" d="M1064 547l-551 -551l-198 198l353 353l-353 353l198 198z" />
116
+<glyph unicode="&#xe081;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM650 900h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-150h-150 q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5t35.5 -14.5h150v-150q0 -21 14.5 -35.5t35.5 -14.5h100q21 0 35.5 14.5t14.5 35.5v150h150q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5h-150v150q0 21 -14.5 35.5t-35.5 14.5z" />
117
+<glyph unicode="&#xe082;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM850 700h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5 t35.5 -14.5h500q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5z" />
118
+<glyph unicode="&#xe083;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM741.5 913q-12.5 0 -21.5 -9l-120 -120l-120 120q-9 9 -21.5 9 t-21.5 -9l-141 -141q-9 -9 -9 -21.5t9 -21.5l120 -120l-120 -120q-9 -9 -9 -21.5t9 -21.5l141 -141q9 -9 21.5 -9t21.5 9l120 120l120 -120q9 -9 21.5 -9t21.5 9l141 141q9 9 9 21.5t-9 21.5l-120 120l120 120q9 9 9 21.5t-9 21.5l-141 141q-9 9 -21.5 9z" />
119
+<glyph unicode="&#xe084;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM546 623l-84 85q-7 7 -17.5 7t-18.5 -7l-139 -139q-7 -8 -7 -18t7 -18 l242 -241q7 -8 17.5 -8t17.5 8l375 375q7 7 7 17.5t-7 18.5l-139 139q-7 7 -17.5 7t-17.5 -7z" />
120
+<glyph unicode="&#xe085;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM588 941q-29 0 -59 -5.5t-63 -20.5t-58 -38.5t-41.5 -63t-16.5 -89.5 q0 -25 20 -25h131q30 -5 35 11q6 20 20.5 28t45.5 8q20 0 31.5 -10.5t11.5 -28.5q0 -23 -7 -34t-26 -18q-1 0 -13.5 -4t-19.5 -7.5t-20 -10.5t-22 -17t-18.5 -24t-15.5 -35t-8 -46q-1 -8 5.5 -16.5t20.5 -8.5h173q7 0 22 8t35 28t37.5 48t29.5 74t12 100q0 47 -17 83 t-42.5 57t-59.5 34.5t-64 18t-59 4.5zM675 400h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5z" />
121
+<glyph unicode="&#xe086;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM675 1000h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5 t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5zM675 700h-250q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h75v-200h-75q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h350q10 0 17.5 7.5t7.5 17.5v50q0 10 -7.5 17.5 t-17.5 7.5h-75v275q0 10 -7.5 17.5t-17.5 7.5z" />
122
+<glyph unicode="&#xe087;" d="M525 1200h150q10 0 17.5 -7.5t7.5 -17.5v-194q103 -27 178.5 -102.5t102.5 -178.5h194q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-194q-27 -103 -102.5 -178.5t-178.5 -102.5v-194q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v194 q-103 27 -178.5 102.5t-102.5 178.5h-194q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h194q27 103 102.5 178.5t178.5 102.5v194q0 10 7.5 17.5t17.5 7.5zM700 893v-168q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v168q-68 -23 -119 -74 t-74 -119h168q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-168q23 -68 74 -119t119 -74v168q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-168q68 23 119 74t74 119h-168q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h168 q-23 68 -74 119t-119 74z" />
123
+<glyph unicode="&#xe088;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM759 823l64 -64q7 -7 7 -17.5t-7 -17.5l-124 -124l124 -124q7 -7 7 -17.5t-7 -17.5l-64 -64q-7 -7 -17.5 -7t-17.5 7l-124 124l-124 -124q-7 -7 -17.5 -7t-17.5 7l-64 64 q-7 7 -7 17.5t7 17.5l124 124l-124 124q-7 7 -7 17.5t7 17.5l64 64q7 7 17.5 7t17.5 -7l124 -124l124 124q7 7 17.5 7t17.5 -7z" />
124
+<glyph unicode="&#xe089;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM782 788l106 -106q7 -7 7 -17.5t-7 -17.5l-320 -321q-8 -7 -18 -7t-18 7l-202 203q-8 7 -8 17.5t8 17.5l106 106q7 8 17.5 8t17.5 -8l79 -79l197 197q7 7 17.5 7t17.5 -7z" />
125
+<glyph unicode="&#xe090;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5q0 -120 65 -225 l587 587q-105 65 -225 65zM965 819l-584 -584q104 -62 219 -62q116 0 214.5 57t155.5 155.5t57 214.5q0 115 -62 219z" />
126
+<glyph unicode="&#xe091;" d="M39 582l522 427q16 13 27.5 8t11.5 -26v-291h550q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-550v-291q0 -21 -11.5 -26t-27.5 8l-522 427q-16 13 -16 32t16 32z" />
127
+<glyph unicode="&#xe092;" d="M639 1009l522 -427q16 -13 16 -32t-16 -32l-522 -427q-16 -13 -27.5 -8t-11.5 26v291h-550q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h550v291q0 21 11.5 26t27.5 -8z" />
128
+<glyph unicode="&#xe093;" d="M682 1161l427 -522q13 -16 8 -27.5t-26 -11.5h-291v-550q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v550h-291q-21 0 -26 11.5t8 27.5l427 522q13 16 32 16t32 -16z" />
129
+<glyph unicode="&#xe094;" d="M550 1200h200q21 0 35.5 -14.5t14.5 -35.5v-550h291q21 0 26 -11.5t-8 -27.5l-427 -522q-13 -16 -32 -16t-32 16l-427 522q-13 16 -8 27.5t26 11.5h291v550q0 21 14.5 35.5t35.5 14.5z" />
130
+<glyph unicode="&#xe095;" d="M639 1109l522 -427q16 -13 16 -32t-16 -32l-522 -427q-16 -13 -27.5 -8t-11.5 26v291q-94 -2 -182 -20t-170.5 -52t-147 -92.5t-100.5 -135.5q5 105 27 193.5t67.5 167t113 135t167 91.5t225.5 42v262q0 21 11.5 26t27.5 -8z" />
131
+<glyph unicode="&#xe096;" d="M850 1200h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94l-249 -249q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l249 249l-94 94q-14 14 -10 24.5t25 10.5zM350 0h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l249 249 q8 7 18 7t18 -7l106 -106q7 -8 7 -18t-7 -18l-249 -249l94 -94q14 -14 10 -24.5t-25 -10.5z" />
132
+<glyph unicode="&#xe097;" d="M1014 1120l106 -106q7 -8 7 -18t-7 -18l-249 -249l94 -94q14 -14 10 -24.5t-25 -10.5h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l249 249q8 7 18 7t18 -7zM250 600h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94 l-249 -249q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l249 249l-94 94q-14 14 -10 24.5t25 10.5z" />
133
+<glyph unicode="&#xe101;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM704 900h-208q-20 0 -32 -14.5t-8 -34.5l58 -302q4 -20 21.5 -34.5 t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5zM675 400h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5z" />
134
+<glyph unicode="&#xe102;" d="M260 1200q9 0 19 -2t15 -4l5 -2q22 -10 44 -23l196 -118q21 -13 36 -24q29 -21 37 -12q11 13 49 35l196 118q22 13 45 23q17 7 38 7q23 0 47 -16.5t37 -33.5l13 -16q14 -21 18 -45l25 -123l8 -44q1 -9 8.5 -14.5t17.5 -5.5h61q10 0 17.5 -7.5t7.5 -17.5v-50 q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 -7.5t-7.5 -17.5v-175h-400v300h-200v-300h-400v175q0 10 -7.5 17.5t-17.5 7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5h61q11 0 18 3t7 8q0 4 9 52l25 128q5 25 19 45q2 3 5 7t13.5 15t21.5 19.5t26.5 15.5 t29.5 7zM915 1079l-166 -162q-7 -7 -5 -12t12 -5h219q10 0 15 7t2 17l-51 149q-3 10 -11 12t-15 -6zM463 917l-177 157q-8 7 -16 5t-11 -12l-51 -143q-3 -10 2 -17t15 -7h231q11 0 12.5 5t-5.5 12zM500 0h-375q-10 0 -17.5 7.5t-7.5 17.5v375h400v-400zM1100 400v-375 q0 -10 -7.5 -17.5t-17.5 -7.5h-375v400h400z" />
135
+<glyph unicode="&#xe103;" d="M1165 1190q8 3 21 -6.5t13 -17.5q-2 -178 -24.5 -323.5t-55.5 -245.5t-87 -174.5t-102.5 -118.5t-118 -68.5t-118.5 -33t-120 -4.5t-105 9.5t-90 16.5q-61 12 -78 11q-4 1 -12.5 0t-34 -14.5t-52.5 -40.5l-153 -153q-26 -24 -37 -14.5t-11 43.5q0 64 42 102q8 8 50.5 45 t66.5 58q19 17 35 47t13 61q-9 55 -10 102.5t7 111t37 130t78 129.5q39 51 80 88t89.5 63.5t94.5 45t113.5 36t129 31t157.5 37t182 47.5zM1116 1098q-8 9 -22.5 -3t-45.5 -50q-38 -47 -119 -103.5t-142 -89.5l-62 -33q-56 -30 -102 -57t-104 -68t-102.5 -80.5t-85.5 -91 t-64 -104.5q-24 -56 -31 -86t2 -32t31.5 17.5t55.5 59.5q25 30 94 75.5t125.5 77.5t147.5 81q70 37 118.5 69t102 79.5t99 111t86.5 148.5q22 50 24 60t-6 19z" />
136
+<glyph unicode="&#xe104;" d="M653 1231q-39 -67 -54.5 -131t-10.5 -114.5t24.5 -96.5t47.5 -80t63.5 -62.5t68.5 -46.5t65 -30q-4 7 -17.5 35t-18.5 39.5t-17 39.5t-17 43t-13 42t-9.5 44.5t-2 42t4 43t13.5 39t23 38.5q96 -42 165 -107.5t105 -138t52 -156t13 -159t-19 -149.5q-13 -55 -44 -106.5 t-68 -87t-78.5 -64.5t-72.5 -45t-53 -22q-72 -22 -127 -11q-31 6 -13 19q6 3 17 7q13 5 32.5 21t41 44t38.5 63.5t21.5 81.5t-6.5 94.5t-50 107t-104 115.5q10 -104 -0.5 -189t-37 -140.5t-65 -93t-84 -52t-93.5 -11t-95 24.5q-80 36 -131.5 114t-53.5 171q-2 23 0 49.5 t4.5 52.5t13.5 56t27.5 60t46 64.5t69.5 68.5q-8 -53 -5 -102.5t17.5 -90t34 -68.5t44.5 -39t49 -2q31 13 38.5 36t-4.5 55t-29 64.5t-36 75t-26 75.5q-15 85 2 161.5t53.5 128.5t85.5 92.5t93.5 61t81.5 25.5z" />
137
+<glyph unicode="&#xe105;" d="M600 1094q82 0 160.5 -22.5t140 -59t116.5 -82.5t94.5 -95t68 -95t42.5 -82.5t14 -57.5t-14 -57.5t-43 -82.5t-68.5 -95t-94.5 -95t-116.5 -82.5t-140 -59t-159.5 -22.5t-159.5 22.5t-140 59t-116.5 82.5t-94.5 95t-68.5 95t-43 82.5t-14 57.5t14 57.5t42.5 82.5t68 95 t94.5 95t116.5 82.5t140 59t160.5 22.5zM888 829q-15 15 -18 12t5 -22q25 -57 25 -119q0 -124 -88 -212t-212 -88t-212 88t-88 212q0 59 23 114q8 19 4.5 22t-17.5 -12q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q22 -36 47 -71t70 -82t92.5 -81t113 -58.5t133.5 -24.5 t133.5 24t113 58.5t92.5 81.5t70 81.5t47 70.5q11 18 9 42.5t-14 41.5q-90 117 -163 189zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l35 34q14 15 12.5 33.5t-16.5 33.5q-44 44 -89 117q-11 18 -28 20t-32 -12z" />
138
+<glyph unicode="&#xe106;" d="M592 0h-148l31 120q-91 20 -175.5 68.5t-143.5 106.5t-103.5 119t-66.5 110t-22 76q0 21 14 57.5t42.5 82.5t68 95t94.5 95t116.5 82.5t140 59t160.5 22.5q61 0 126 -15l32 121h148zM944 770l47 181q108 -85 176.5 -192t68.5 -159q0 -26 -19.5 -71t-59.5 -102t-93 -112 t-129 -104.5t-158 -75.5l46 173q77 49 136 117t97 131q11 18 9 42.5t-14 41.5q-54 70 -107 130zM310 824q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q18 -30 39 -60t57 -70.5t74 -73t90 -61t105 -41.5l41 154q-107 18 -178.5 101.5t-71.5 193.5q0 59 23 114q8 19 4.5 22 t-17.5 -12zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l12 11l22 86l-3 4q-44 44 -89 117q-11 18 -28 20t-32 -12z" />
139
+<glyph unicode="&#xe107;" d="M-90 100l642 1066q20 31 48 28.5t48 -35.5l642 -1056q21 -32 7.5 -67.5t-50.5 -35.5h-1294q-37 0 -50.5 34t7.5 66zM155 200h345v75q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-75h345l-445 723zM496 700h208q20 0 32 -14.5t8 -34.5l-58 -252 q-4 -20 -21.5 -34.5t-37.5 -14.5h-54q-20 0 -37.5 14.5t-21.5 34.5l-58 252q-4 20 8 34.5t32 14.5z" />
140
+<glyph unicode="&#xe108;" d="M650 1200q62 0 106 -44t44 -106v-339l363 -325q15 -14 26 -38.5t11 -44.5v-41q0 -20 -12 -26.5t-29 5.5l-359 249v-263q100 -93 100 -113v-64q0 -21 -13 -29t-32 1l-205 128l-205 -128q-19 -9 -32 -1t-13 29v64q0 20 100 113v263l-359 -249q-17 -12 -29 -5.5t-12 26.5v41 q0 20 11 44.5t26 38.5l363 325v339q0 62 44 106t106 44z" />
141
+<glyph unicode="&#xe109;" d="M850 1200h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-150h-1100v150q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-50h500v50q0 21 14.5 35.5t35.5 14.5zM1100 800v-750q0 -21 -14.5 -35.5 t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v750h1100zM100 600v-100h100v100h-100zM300 600v-100h100v100h-100zM500 600v-100h100v100h-100zM700 600v-100h100v100h-100zM900 600v-100h100v100h-100zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400 v-100h100v100h-100zM700 400v-100h100v100h-100zM900 400v-100h100v100h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100zM500 200v-100h100v100h-100zM700 200v-100h100v100h-100zM900 200v-100h100v100h-100z" />
142
+<glyph unicode="&#xe110;" d="M1135 1165l249 -230q15 -14 15 -35t-15 -35l-249 -230q-14 -14 -24.5 -10t-10.5 25v150h-159l-600 -600h-291q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h209l600 600h241v150q0 21 10.5 25t24.5 -10zM522 819l-141 -141l-122 122h-209q-21 0 -35.5 14.5 t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h291zM1135 565l249 -230q15 -14 15 -35t-15 -35l-249 -230q-14 -14 -24.5 -10t-10.5 25v150h-241l-181 181l141 141l122 -122h159v150q0 21 10.5 25t24.5 -10z" />
143
+<glyph unicode="&#xe111;" d="M100 1100h1000q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-596l-304 -300v300h-100q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5z" />
144
+<glyph unicode="&#xe112;" d="M150 1200h200q21 0 35.5 -14.5t14.5 -35.5v-250h-300v250q0 21 14.5 35.5t35.5 14.5zM850 1200h200q21 0 35.5 -14.5t14.5 -35.5v-250h-300v250q0 21 14.5 35.5t35.5 14.5zM1100 800v-300q0 -41 -3 -77.5t-15 -89.5t-32 -96t-58 -89t-89 -77t-129 -51t-174 -20t-174 20 t-129 51t-89 77t-58 89t-32 96t-15 89.5t-3 77.5v300h300v-250v-27v-42.5t1.5 -41t5 -38t10 -35t16.5 -30t25.5 -24.5t35 -19t46.5 -12t60 -4t60 4.5t46.5 12.5t35 19.5t25 25.5t17 30.5t10 35t5 38t2 40.5t-0.5 42v25v250h300z" />
145
+<glyph unicode="&#xe113;" d="M1100 411l-198 -199l-353 353l-353 -353l-197 199l551 551z" />
146
+<glyph unicode="&#xe114;" d="M1101 789l-550 -551l-551 551l198 199l353 -353l353 353z" />
147
+<glyph unicode="&#xe115;" d="M404 1000h746q21 0 35.5 -14.5t14.5 -35.5v-551h150q21 0 25 -10.5t-10 -24.5l-230 -249q-14 -15 -35 -15t-35 15l-230 249q-14 14 -10 24.5t25 10.5h150v401h-381zM135 984l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-400h385l215 -200h-750q-21 0 -35.5 14.5 t-14.5 35.5v550h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
148
+<glyph unicode="&#xe116;" d="M56 1200h94q17 0 31 -11t18 -27l38 -162h896q24 0 39 -18.5t10 -42.5l-100 -475q-5 -21 -27 -42.5t-55 -21.5h-633l48 -200h535q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-50q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v50h-300v-50 q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v50h-31q-18 0 -32.5 10t-20.5 19l-5 10l-201 961h-54q-20 0 -35 14.5t-15 35.5t15 35.5t35 14.5z" />
149
+<glyph unicode="&#xe117;" d="M1200 1000v-100h-1200v100h200q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5h500zM0 800h1200v-800h-1200v800z" />
150
+<glyph unicode="&#xe118;" d="M200 800l-200 -400v600h200q0 41 29.5 70.5t70.5 29.5h300q42 0 71 -29.5t29 -70.5h500v-200h-1000zM1500 700l-300 -700h-1200l300 700h1200z" />
151
+<glyph unicode="&#xe119;" d="M635 1184l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-601h150q21 0 25 -10.5t-10 -24.5l-230 -249q-14 -15 -35 -15t-35 15l-230 249q-14 14 -10 24.5t25 10.5h150v601h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
152
+<glyph unicode="&#xe120;" d="M936 864l249 -229q14 -15 14 -35.5t-14 -35.5l-249 -229q-15 -15 -25.5 -10.5t-10.5 24.5v151h-600v-151q0 -20 -10.5 -24.5t-25.5 10.5l-249 229q-14 15 -14 35.5t14 35.5l249 229q15 15 25.5 10.5t10.5 -25.5v-149h600v149q0 21 10.5 25.5t25.5 -10.5z" />
153
+<glyph unicode="&#xe121;" d="M1169 400l-172 732q-5 23 -23 45.5t-38 22.5h-672q-20 0 -38 -20t-23 -41l-172 -739h1138zM1100 300h-1000q-41 0 -70.5 -29.5t-29.5 -70.5v-100q0 -41 29.5 -70.5t70.5 -29.5h1000q41 0 70.5 29.5t29.5 70.5v100q0 41 -29.5 70.5t-70.5 29.5zM800 100v100h100v-100h-100 zM1000 100v100h100v-100h-100z" />
154
+<glyph unicode="&#xe122;" d="M1150 1100q21 0 35.5 -14.5t14.5 -35.5v-850q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v850q0 21 14.5 35.5t35.5 14.5zM1000 200l-675 200h-38l47 -276q3 -16 -5.5 -20t-29.5 -4h-7h-84q-20 0 -34.5 14t-18.5 35q-55 337 -55 351v250v6q0 16 1 23.5t6.5 14 t17.5 6.5h200l675 250v-850zM0 750v-250q-4 0 -11 0.5t-24 6t-30 15t-24 30t-11 48.5v50q0 26 10.5 46t25 30t29 16t25.5 7z" />
155
+<glyph unicode="&#xe123;" d="M553 1200h94q20 0 29 -10.5t3 -29.5l-18 -37q83 -19 144 -82.5t76 -140.5l63 -327l118 -173h17q19 0 33 -14.5t14 -35t-13 -40.5t-31 -27q-8 -4 -23 -9.5t-65 -19.5t-103 -25t-132.5 -20t-158.5 -9q-57 0 -115 5t-104 12t-88.5 15.5t-73.5 17.5t-54.5 16t-35.5 12l-11 4 q-18 8 -31 28t-13 40.5t14 35t33 14.5h17l118 173l63 327q15 77 76 140t144 83l-18 32q-6 19 3.5 32t28.5 13zM498 110q50 -6 102 -6q53 0 102 6q-12 -49 -39.5 -79.5t-62.5 -30.5t-63 30.5t-39 79.5z" />
156
+<glyph unicode="&#xe124;" d="M800 946l224 78l-78 -224l234 -45l-180 -155l180 -155l-234 -45l78 -224l-224 78l-45 -234l-155 180l-155 -180l-45 234l-224 -78l78 224l-234 45l180 155l-180 155l234 45l-78 224l224 -78l45 234l155 -180l155 180z" />
157
+<glyph unicode="&#xe125;" d="M650 1200h50q40 0 70 -40.5t30 -84.5v-150l-28 -125h328q40 0 70 -40.5t30 -84.5v-100q0 -45 -29 -74l-238 -344q-16 -24 -38 -40.5t-45 -16.5h-250q-7 0 -42 25t-66 50l-31 25h-61q-45 0 -72.5 18t-27.5 57v400q0 36 20 63l145 196l96 198q13 28 37.5 48t51.5 20z M650 1100l-100 -212l-150 -213v-375h100l136 -100h214l250 375v125h-450l50 225v175h-50zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5z" />
158
+<glyph unicode="&#xe126;" d="M600 1100h250q23 0 45 -16.5t38 -40.5l238 -344q29 -29 29 -74v-100q0 -44 -30 -84.5t-70 -40.5h-328q28 -118 28 -125v-150q0 -44 -30 -84.5t-70 -40.5h-50q-27 0 -51.5 20t-37.5 48l-96 198l-145 196q-20 27 -20 63v400q0 39 27.5 57t72.5 18h61q124 100 139 100z M50 1000h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5zM636 1000l-136 -100h-100v-375l150 -213l100 -212h50v175l-50 225h450v125l-250 375h-214z" />
159
+<glyph unicode="&#xe127;" d="M356 873l363 230q31 16 53 -6l110 -112q13 -13 13.5 -32t-11.5 -34l-84 -121h302q84 0 138 -38t54 -110t-55 -111t-139 -39h-106l-131 -339q-6 -21 -19.5 -41t-28.5 -20h-342q-7 0 -90 81t-83 94v525q0 17 14 35.5t28 28.5zM400 792v-503l100 -89h293l131 339 q6 21 19.5 41t28.5 20h203q21 0 30.5 25t0.5 50t-31 25h-456h-7h-6h-5.5t-6 0.5t-5 1.5t-5 2t-4 2.5t-4 4t-2.5 4.5q-12 25 5 47l146 183l-86 83zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500 q0 21 14.5 35.5t35.5 14.5z" />
160
+<glyph unicode="&#xe128;" d="M475 1103l366 -230q2 -1 6 -3.5t14 -10.5t18 -16.5t14.5 -20t6.5 -22.5v-525q0 -13 -86 -94t-93 -81h-342q-15 0 -28.5 20t-19.5 41l-131 339h-106q-85 0 -139.5 39t-54.5 111t54 110t138 38h302l-85 121q-11 15 -10.5 34t13.5 32l110 112q22 22 53 6zM370 945l146 -183 q17 -22 5 -47q-2 -2 -3.5 -4.5t-4 -4t-4 -2.5t-5 -2t-5 -1.5t-6 -0.5h-6h-6.5h-6h-475v-100h221q15 0 29 -20t20 -41l130 -339h294l106 89v503l-342 236zM1050 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5 v500q0 21 14.5 35.5t35.5 14.5z" />
161
+<glyph unicode="&#xe129;" d="M550 1294q72 0 111 -55t39 -139v-106l339 -131q21 -6 41 -19.5t20 -28.5v-342q0 -7 -81 -90t-94 -83h-525q-17 0 -35.5 14t-28.5 28l-9 14l-230 363q-16 31 6 53l112 110q13 13 32 13.5t34 -11.5l121 -84v302q0 84 38 138t110 54zM600 972v203q0 21 -25 30.5t-50 0.5 t-25 -31v-456v-7v-6v-5.5t-0.5 -6t-1.5 -5t-2 -5t-2.5 -4t-4 -4t-4.5 -2.5q-25 -12 -47 5l-183 146l-83 -86l236 -339h503l89 100v293l-339 131q-21 6 -41 19.5t-20 28.5zM450 200h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
162
+<glyph unicode="&#xe130;" d="M350 1100h500q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5t35.5 -14.5zM600 306v-106q0 -84 -39 -139t-111 -55t-110 54t-38 138v302l-121 -84q-15 -12 -34 -11.5t-32 13.5l-112 110 q-22 22 -6 53l230 363q1 2 3.5 6t10.5 13.5t16.5 17t20 13.5t22.5 6h525q13 0 94 -83t81 -90v-342q0 -15 -20 -28.5t-41 -19.5zM308 900l-236 -339l83 -86l183 146q22 17 47 5q2 -1 4.5 -2.5t4 -4t2.5 -4t2 -5t1.5 -5t0.5 -6v-5.5v-6v-7v-456q0 -22 25 -31t50 0.5t25 30.5 v203q0 15 20 28.5t41 19.5l339 131v293l-89 100h-503z" />
163
+<glyph unicode="&#xe131;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM914 632l-275 223q-16 13 -27.5 8t-11.5 -26v-137h-275 q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h275v-137q0 -21 11.5 -26t27.5 8l275 223q16 13 16 32t-16 32z" />
164
+<glyph unicode="&#xe132;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM561 855l-275 -223q-16 -13 -16 -32t16 -32l275 -223q16 -13 27.5 -8 t11.5 26v137h275q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5h-275v137q0 21 -11.5 26t-27.5 -8z" />
165
+<glyph unicode="&#xe133;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM855 639l-223 275q-13 16 -32 16t-32 -16l-223 -275q-13 -16 -8 -27.5 t26 -11.5h137v-275q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v275h137q21 0 26 11.5t-8 27.5z" />
166
+<glyph unicode="&#xe134;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM675 900h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-275h-137q-21 0 -26 -11.5 t8 -27.5l223 -275q13 -16 32 -16t32 16l223 275q13 16 8 27.5t-26 11.5h-137v275q0 10 -7.5 17.5t-17.5 7.5z" />
167
+<glyph unicode="&#xe135;" d="M600 1176q116 0 222.5 -46t184 -123.5t123.5 -184t46 -222.5t-46 -222.5t-123.5 -184t-184 -123.5t-222.5 -46t-222.5 46t-184 123.5t-123.5 184t-46 222.5t46 222.5t123.5 184t184 123.5t222.5 46zM627 1101q-15 -12 -36.5 -20.5t-35.5 -12t-43 -8t-39 -6.5 q-15 -3 -45.5 0t-45.5 -2q-20 -7 -51.5 -26.5t-34.5 -34.5q-3 -11 6.5 -22.5t8.5 -18.5q-3 -34 -27.5 -91t-29.5 -79q-9 -34 5 -93t8 -87q0 -9 17 -44.5t16 -59.5q12 0 23 -5t23.5 -15t19.5 -14q16 -8 33 -15t40.5 -15t34.5 -12q21 -9 52.5 -32t60 -38t57.5 -11 q7 -15 -3 -34t-22.5 -40t-9.5 -38q13 -21 23 -34.5t27.5 -27.5t36.5 -18q0 -7 -3.5 -16t-3.5 -14t5 -17q104 -2 221 112q30 29 46.5 47t34.5 49t21 63q-13 8 -37 8.5t-36 7.5q-15 7 -49.5 15t-51.5 19q-18 0 -41 -0.5t-43 -1.5t-42 -6.5t-38 -16.5q-51 -35 -66 -12 q-4 1 -3.5 25.5t0.5 25.5q-6 13 -26.5 17.5t-24.5 6.5q1 15 -0.5 30.5t-7 28t-18.5 11.5t-31 -21q-23 -25 -42 4q-19 28 -8 58q6 16 22 22q6 -1 26 -1.5t33.5 -4t19.5 -13.5q7 -12 18 -24t21.5 -20.5t20 -15t15.5 -10.5l5 -3q2 12 7.5 30.5t8 34.5t-0.5 32q-3 18 3.5 29 t18 22.5t15.5 24.5q6 14 10.5 35t8 31t15.5 22.5t34 22.5q-6 18 10 36q8 0 24 -1.5t24.5 -1.5t20 4.5t20.5 15.5q-10 23 -31 42.5t-37.5 29.5t-49 27t-43.5 23q0 1 2 8t3 11.5t1.5 10.5t-1 9.5t-4.5 4.5q31 -13 58.5 -14.5t38.5 2.5l12 5q5 28 -9.5 46t-36.5 24t-50 15 t-41 20q-18 -4 -37 0zM613 994q0 -17 8 -42t17 -45t9 -23q-8 1 -39.5 5.5t-52.5 10t-37 16.5q3 11 16 29.5t16 25.5q10 -10 19 -10t14 6t13.5 14.5t16.5 12.5z" />
168
+<glyph unicode="&#xe136;" d="M756 1157q164 92 306 -9l-259 -138l145 -232l251 126q6 -89 -34 -156.5t-117 -110.5q-60 -34 -127 -39.5t-126 16.5l-596 -596q-15 -16 -36.5 -16t-36.5 16l-111 110q-15 15 -15 36.5t15 37.5l600 599q-34 101 5.5 201.5t135.5 154.5z" />
169
+<glyph unicode="&#xe137;" horiz-adv-x="1220" d="M100 1196h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 1096h-200v-100h200v100zM100 796h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 696h-500v-100h500v100zM100 396h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 296h-300v-100h300v100z " />
170
+<glyph unicode="&#xe138;" d="M150 1200h900q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM700 500v-300l-200 -200v500l-350 500h900z" />
171
+<glyph unicode="&#xe139;" d="M500 1200h200q41 0 70.5 -29.5t29.5 -70.5v-100h300q41 0 70.5 -29.5t29.5 -70.5v-400h-500v100h-200v-100h-500v400q0 41 29.5 70.5t70.5 29.5h300v100q0 41 29.5 70.5t70.5 29.5zM500 1100v-100h200v100h-200zM1200 400v-200q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v200h1200z" />
172
+<glyph unicode="&#xe140;" d="M50 1200h300q21 0 25 -10.5t-10 -24.5l-94 -94l199 -199q7 -8 7 -18t-7 -18l-106 -106q-8 -7 -18 -7t-18 7l-199 199l-94 -94q-14 -14 -24.5 -10t-10.5 25v300q0 21 14.5 35.5t35.5 14.5zM850 1200h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94 l-199 -199q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l199 199l-94 94q-14 14 -10 24.5t25 10.5zM364 470l106 -106q7 -8 7 -18t-7 -18l-199 -199l94 -94q14 -14 10 -24.5t-25 -10.5h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l199 199 q8 7 18 7t18 -7zM1071 271l94 94q14 14 24.5 10t10.5 -25v-300q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -25 10.5t10 24.5l94 94l-199 199q-7 8 -7 18t7 18l106 106q8 7 18 7t18 -7z" />
173
+<glyph unicode="&#xe141;" d="M596 1192q121 0 231.5 -47.5t190 -127t127 -190t47.5 -231.5t-47.5 -231.5t-127 -190.5t-190 -127t-231.5 -47t-231.5 47t-190.5 127t-127 190.5t-47 231.5t47 231.5t127 190t190.5 127t231.5 47.5zM596 1010q-112 0 -207.5 -55.5t-151 -151t-55.5 -207.5t55.5 -207.5 t151 -151t207.5 -55.5t207.5 55.5t151 151t55.5 207.5t-55.5 207.5t-151 151t-207.5 55.5zM454.5 905q22.5 0 38.5 -16t16 -38.5t-16 -39t-38.5 -16.5t-38.5 16.5t-16 39t16 38.5t38.5 16zM754.5 905q22.5 0 38.5 -16t16 -38.5t-16 -39t-38 -16.5q-14 0 -29 10l-55 -145 q17 -23 17 -51q0 -36 -25.5 -61.5t-61.5 -25.5t-61.5 25.5t-25.5 61.5q0 32 20.5 56.5t51.5 29.5l122 126l1 1q-9 14 -9 28q0 23 16 39t38.5 16zM345.5 709q22.5 0 38.5 -16t16 -38.5t-16 -38.5t-38.5 -16t-38.5 16t-16 38.5t16 38.5t38.5 16zM854.5 709q22.5 0 38.5 -16 t16 -38.5t-16 -38.5t-38.5 -16t-38.5 16t-16 38.5t16 38.5t38.5 16z" />
174
+<glyph unicode="&#xe142;" d="M546 173l469 470q91 91 99 192q7 98 -52 175.5t-154 94.5q-22 4 -47 4q-34 0 -66.5 -10t-56.5 -23t-55.5 -38t-48 -41.5t-48.5 -47.5q-376 -375 -391 -390q-30 -27 -45 -41.5t-37.5 -41t-32 -46.5t-16 -47.5t-1.5 -56.5q9 -62 53.5 -95t99.5 -33q74 0 125 51l548 548 q36 36 20 75q-7 16 -21.5 26t-32.5 10q-26 0 -50 -23q-13 -12 -39 -38l-341 -338q-15 -15 -35.5 -15.5t-34.5 13.5t-14 34.5t14 34.5q327 333 361 367q35 35 67.5 51.5t78.5 16.5q14 0 29 -1q44 -8 74.5 -35.5t43.5 -68.5q14 -47 2 -96.5t-47 -84.5q-12 -11 -32 -32 t-79.5 -81t-114.5 -115t-124.5 -123.5t-123 -119.5t-96.5 -89t-57 -45q-56 -27 -120 -27q-70 0 -129 32t-93 89q-48 78 -35 173t81 163l511 511q71 72 111 96q91 55 198 55q80 0 152 -33q78 -36 129.5 -103t66.5 -154q17 -93 -11 -183.5t-94 -156.5l-482 -476 q-15 -15 -36 -16t-37 14t-17.5 34t14.5 35z" />
175
+<glyph unicode="&#xe143;" d="M649 949q48 68 109.5 104t121.5 38.5t118.5 -20t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-150 152.5t-126.5 127.5t-93.5 124.5t-33.5 117.5q0 64 28 123t73 100.5t104 64t119 20 t120.5 -38.5t104.5 -104zM896 972q-33 0 -64.5 -19t-56.5 -46t-47.5 -53.5t-43.5 -45.5t-37.5 -19t-36 19t-40 45.5t-43 53.5t-54 46t-65.5 19q-67 0 -122.5 -55.5t-55.5 -132.5q0 -23 13.5 -51t46 -65t57.5 -63t76 -75l22 -22q15 -14 44 -44t50.5 -51t46 -44t41 -35t23 -12 t23.5 12t42.5 36t46 44t52.5 52t44 43q4 4 12 13q43 41 63.5 62t52 55t46 55t26 46t11.5 44q0 79 -53 133.5t-120 54.5z" />
176
+<glyph unicode="&#xe144;" d="M776.5 1214q93.5 0 159.5 -66l141 -141q66 -66 66 -160q0 -42 -28 -95.5t-62 -87.5l-29 -29q-31 53 -77 99l-18 18l95 95l-247 248l-389 -389l212 -212l-105 -106l-19 18l-141 141q-66 66 -66 159t66 159l283 283q65 66 158.5 66zM600 706l105 105q10 -8 19 -17l141 -141 q66 -66 66 -159t-66 -159l-283 -283q-66 -66 -159 -66t-159 66l-141 141q-66 66 -66 159.5t66 159.5l55 55q29 -55 75 -102l18 -17l-95 -95l247 -248l389 389z" />
177
+<glyph unicode="&#xe145;" d="M603 1200q85 0 162 -15t127 -38t79 -48t29 -46v-953q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-41 0 -70.5 29.5t-29.5 70.5v953q0 21 30 46.5t81 48t129 37.5t163 15zM300 1000v-700h600v700h-600zM600 254q-43 0 -73.5 -30.5t-30.5 -73.5t30.5 -73.5t73.5 -30.5t73.5 30.5 t30.5 73.5t-30.5 73.5t-73.5 30.5z" />
178
+<glyph unicode="&#xe146;" d="M902 1185l283 -282q15 -15 15 -36t-14.5 -35.5t-35.5 -14.5t-35 15l-36 35l-279 -267v-300l-212 210l-308 -307l-280 -203l203 280l307 308l-210 212h300l267 279l-35 36q-15 14 -15 35t14.5 35.5t35.5 14.5t35 -15z" />
179
+<glyph unicode="&#xe148;" d="M700 1248v-78q38 -5 72.5 -14.5t75.5 -31.5t71 -53.5t52 -84t24 -118.5h-159q-4 36 -10.5 59t-21 45t-40 35.5t-64.5 20.5v-307l64 -13q34 -7 64 -16.5t70 -32t67.5 -52.5t47.5 -80t20 -112q0 -139 -89 -224t-244 -97v-77h-100v79q-150 16 -237 103q-40 40 -52.5 93.5 t-15.5 139.5h139q5 -77 48.5 -126t117.5 -65v335l-27 8q-46 14 -79 26.5t-72 36t-63 52t-40 72.5t-16 98q0 70 25 126t67.5 92t94.5 57t110 27v77h100zM600 754v274q-29 -4 -50 -11t-42 -21.5t-31.5 -41.5t-10.5 -65q0 -29 7 -50.5t16.5 -34t28.5 -22.5t31.5 -14t37.5 -10 q9 -3 13 -4zM700 547v-310q22 2 42.5 6.5t45 15.5t41.5 27t29 42t12 59.5t-12.5 59.5t-38 44.5t-53 31t-66.5 24.5z" />
180
+<glyph unicode="&#xe149;" d="M561 1197q84 0 160.5 -40t123.5 -109.5t47 -147.5h-153q0 40 -19.5 71.5t-49.5 48.5t-59.5 26t-55.5 9q-37 0 -79 -14.5t-62 -35.5q-41 -44 -41 -101q0 -26 13.5 -63t26.5 -61t37 -66q6 -9 9 -14h241v-100h-197q8 -50 -2.5 -115t-31.5 -95q-45 -62 -99 -112 q34 10 83 17.5t71 7.5q32 1 102 -16t104 -17q83 0 136 30l50 -147q-31 -19 -58 -30.5t-55 -15.5t-42 -4.5t-46 -0.5q-23 0 -76 17t-111 32.5t-96 11.5q-39 -3 -82 -16t-67 -25l-23 -11l-55 145q4 3 16 11t15.5 10.5t13 9t15.5 12t14.5 14t17.5 18.5q48 55 54 126.5 t-30 142.5h-221v100h166q-23 47 -44 104q-7 20 -12 41.5t-6 55.5t6 66.5t29.5 70.5t58.5 71q97 88 263 88z" />
181
+<glyph unicode="&#xe150;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM935 1184l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-900h-200v900h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
182
+<glyph unicode="&#xe151;" d="M1000 700h-100v100h-100v-100h-100v500h300v-500zM400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM801 1100v-200h100v200h-100zM1000 350l-200 -250h200v-100h-300v150l200 250h-200v100h300v-150z " />
183
+<glyph unicode="&#xe152;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1000 1050l-200 -250h200v-100h-300v150l200 250h-200v100h300v-150zM1000 0h-100v100h-100v-100h-100v500h300v-500zM801 400v-200h100v200h-100z " />
184
+<glyph unicode="&#xe153;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1000 700h-100v400h-100v100h200v-500zM1100 0h-100v100h-200v400h300v-500zM901 400v-200h100v200h-100z" />
185
+<glyph unicode="&#xe154;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1100 700h-100v100h-200v400h300v-500zM901 1100v-200h100v200h-100zM1000 0h-100v400h-100v100h200v-500z" />
186
+<glyph unicode="&#xe155;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM900 1000h-200v200h200v-200zM1000 700h-300v200h300v-200zM1100 400h-400v200h400v-200zM1200 100h-500v200h500v-200z" />
187
+<glyph unicode="&#xe156;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1200 1000h-500v200h500v-200zM1100 700h-400v200h400v-200zM1000 400h-300v200h300v-200zM900 100h-200v200h200v-200z" />
188
+<glyph unicode="&#xe157;" d="M350 1100h400q162 0 256 -93.5t94 -256.5v-400q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5z" />
189
+<glyph unicode="&#xe158;" d="M350 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-163 0 -256.5 92.5t-93.5 257.5v400q0 163 94 256.5t256 93.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM440 770l253 -190q17 -12 17 -30t-17 -30l-253 -190q-16 -12 -28 -6.5t-12 26.5v400q0 21 12 26.5t28 -6.5z" />
190
+<glyph unicode="&#xe159;" d="M350 1100h400q163 0 256.5 -94t93.5 -256v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 163 92.5 256.5t257.5 93.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM350 700h400q21 0 26.5 -12t-6.5 -28l-190 -253q-12 -17 -30 -17t-30 17l-190 253q-12 16 -6.5 28t26.5 12z" />
191
+<glyph unicode="&#xe160;" d="M350 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -163 -92.5 -256.5t-257.5 -93.5h-400q-163 0 -256.5 94t-93.5 256v400q0 165 92.5 257.5t257.5 92.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM580 693l190 -253q12 -16 6.5 -28t-26.5 -12h-400q-21 0 -26.5 12t6.5 28l190 253q12 17 30 17t30 -17z" />
192
+<glyph unicode="&#xe161;" d="M550 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h450q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5h-450q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM338 867l324 -284q16 -14 16 -33t-16 -33l-324 -284q-16 -14 -27 -9t-11 26v150h-250q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h250v150q0 21 11 26t27 -9z" />
193
+<glyph unicode="&#xe162;" d="M793 1182l9 -9q8 -10 5 -27q-3 -11 -79 -225.5t-78 -221.5l300 1q24 0 32.5 -17.5t-5.5 -35.5q-1 0 -133.5 -155t-267 -312.5t-138.5 -162.5q-12 -15 -26 -15h-9l-9 8q-9 11 -4 32q2 9 42 123.5t79 224.5l39 110h-302q-23 0 -31 19q-10 21 6 41q75 86 209.5 237.5 t228 257t98.5 111.5q9 16 25 16h9z" />
194
+<glyph unicode="&#xe163;" d="M350 1100h400q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-450q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h450q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400 q0 165 92.5 257.5t257.5 92.5zM938 867l324 -284q16 -14 16 -33t-16 -33l-324 -284q-16 -14 -27 -9t-11 26v150h-250q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h250v150q0 21 11 26t27 -9z" />
195
+<glyph unicode="&#xe164;" d="M750 1200h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -10.5 -25t-24.5 10l-109 109l-312 -312q-15 -15 -35.5 -15t-35.5 15l-141 141q-15 15 -15 35.5t15 35.5l312 312l-109 109q-14 14 -10 24.5t25 10.5zM456 900h-156q-41 0 -70.5 -29.5t-29.5 -70.5v-500 q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v148l200 200v-298q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5h300z" />
196
+<glyph unicode="&#xe165;" d="M600 1186q119 0 227.5 -46.5t187 -125t125 -187t46.5 -227.5t-46.5 -227.5t-125 -187t-187 -125t-227.5 -46.5t-227.5 46.5t-187 125t-125 187t-46.5 227.5t46.5 227.5t125 187t187 125t227.5 46.5zM600 1022q-115 0 -212 -56.5t-153.5 -153.5t-56.5 -212t56.5 -212 t153.5 -153.5t212 -56.5t212 56.5t153.5 153.5t56.5 212t-56.5 212t-153.5 153.5t-212 56.5zM600 794q80 0 137 -57t57 -137t-57 -137t-137 -57t-137 57t-57 137t57 137t137 57z" />
197
+<glyph unicode="&#xe166;" d="M450 1200h200q21 0 35.5 -14.5t14.5 -35.5v-350h245q20 0 25 -11t-9 -26l-383 -426q-14 -15 -33.5 -15t-32.5 15l-379 426q-13 15 -8.5 26t25.5 11h250v350q0 21 14.5 35.5t35.5 14.5zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5z M900 200v-50h100v50h-100z" />
198
+<glyph unicode="&#xe167;" d="M583 1182l378 -435q14 -15 9 -31t-26 -16h-244v-250q0 -20 -17 -35t-39 -15h-200q-20 0 -32 14.5t-12 35.5v250h-250q-20 0 -25.5 16.5t8.5 31.5l383 431q14 16 33.5 17t33.5 -14zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5z M900 200v-50h100v50h-100z" />
199
+<glyph unicode="&#xe168;" d="M396 723l369 369q7 7 17.5 7t17.5 -7l139 -139q7 -8 7 -18.5t-7 -17.5l-525 -525q-7 -8 -17.5 -8t-17.5 8l-292 291q-7 8 -7 18t7 18l139 139q8 7 18.5 7t17.5 -7zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50 h-100z" />
200
+<glyph unicode="&#xe169;" d="M135 1023l142 142q14 14 35 14t35 -14l77 -77l-212 -212l-77 76q-14 15 -14 36t14 35zM655 855l210 210q14 14 24.5 10t10.5 -25l-2 -599q-1 -20 -15.5 -35t-35.5 -15l-597 -1q-21 0 -25 10.5t10 24.5l208 208l-154 155l212 212zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5 v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50h-100z" />
201
+<glyph unicode="&#xe170;" d="M350 1200l599 -2q20 -1 35 -15.5t15 -35.5l1 -597q0 -21 -10.5 -25t-24.5 10l-208 208l-155 -154l-212 212l155 154l-210 210q-14 14 -10 24.5t25 10.5zM524 512l-76 -77q-15 -14 -36 -14t-35 14l-142 142q-14 14 -14 35t14 35l77 77zM50 300h1000q21 0 35.5 -14.5 t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50h-100z" />
202
+<glyph unicode="&#xe171;" d="M1200 103l-483 276l-314 -399v423h-399l1196 796v-1096zM483 424v-230l683 953z" />
203
+<glyph unicode="&#xe172;" d="M1100 1000v-850q0 -21 -14.5 -35.5t-35.5 -14.5h-150v400h-700v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200z" />
204
+<glyph unicode="&#xe173;" d="M1100 1000l-2 -149l-299 -299l-95 95q-9 9 -21.5 9t-21.5 -9l-149 -147h-312v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM1132 638l106 -106q7 -7 7 -17.5t-7 -17.5l-420 -421q-8 -7 -18 -7 t-18 7l-202 203q-8 7 -8 17.5t8 17.5l106 106q7 8 17.5 8t17.5 -8l79 -79l297 297q7 7 17.5 7t17.5 -7z" />
205
+<glyph unicode="&#xe174;" d="M1100 1000v-269l-103 -103l-134 134q-15 15 -33.5 16.5t-34.5 -12.5l-266 -266h-329v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM1202 572l70 -70q15 -15 15 -35.5t-15 -35.5l-131 -131 l131 -131q15 -15 15 -35.5t-15 -35.5l-70 -70q-15 -15 -35.5 -15t-35.5 15l-131 131l-131 -131q-15 -15 -35.5 -15t-35.5 15l-70 70q-15 15 -15 35.5t15 35.5l131 131l-131 131q-15 15 -15 35.5t15 35.5l70 70q15 15 35.5 15t35.5 -15l131 -131l131 131q15 15 35.5 15 t35.5 -15z" />
206
+<glyph unicode="&#xe175;" d="M1100 1000v-300h-350q-21 0 -35.5 -14.5t-14.5 -35.5v-150h-500v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM850 600h100q21 0 35.5 -14.5t14.5 -35.5v-250h150q21 0 25 -10.5t-10 -24.5 l-230 -230q-14 -14 -35 -14t-35 14l-230 230q-14 14 -10 24.5t25 10.5h150v250q0 21 14.5 35.5t35.5 14.5z" />
207
+<glyph unicode="&#xe176;" d="M1100 1000v-400l-165 165q-14 15 -35 15t-35 -15l-263 -265h-402v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM935 565l230 -229q14 -15 10 -25.5t-25 -10.5h-150v-250q0 -20 -14.5 -35 t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35v250h-150q-21 0 -25 10.5t10 25.5l230 229q14 15 35 15t35 -15z" />
208
+<glyph unicode="&#xe177;" d="M50 1100h1100q21 0 35.5 -14.5t14.5 -35.5v-150h-1200v150q0 21 14.5 35.5t35.5 14.5zM1200 800v-550q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v550h1200zM100 500v-200h400v200h-400z" />
209
+<glyph unicode="&#xe178;" d="M935 1165l248 -230q14 -14 14 -35t-14 -35l-248 -230q-14 -14 -24.5 -10t-10.5 25v150h-400v200h400v150q0 21 10.5 25t24.5 -10zM200 800h-50q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v-200zM400 800h-100v200h100v-200zM18 435l247 230 q14 14 24.5 10t10.5 -25v-150h400v-200h-400v-150q0 -21 -10.5 -25t-24.5 10l-247 230q-15 14 -15 35t15 35zM900 300h-100v200h100v-200zM1000 500h51q20 0 34.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-34.5 -14.5h-51v200z" />
210
+<glyph unicode="&#xe179;" d="M862 1073l276 116q25 18 43.5 8t18.5 -41v-1106q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v397q-4 1 -11 5t-24 17.5t-30 29t-24 42t-11 56.5v359q0 31 18.5 65t43.5 52zM550 1200q22 0 34.5 -12.5t14.5 -24.5l1 -13v-450q0 -28 -10.5 -59.5 t-25 -56t-29 -45t-25.5 -31.5l-10 -11v-447q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v447q-4 4 -11 11.5t-24 30.5t-30 46t-24 55t-11 60v450q0 2 0.5 5.5t4 12t8.5 15t14.5 12t22.5 5.5q20 0 32.5 -12.5t14.5 -24.5l3 -13v-350h100v350v5.5t2.5 12 t7 15t15 12t25.5 5.5q23 0 35.5 -12.5t13.5 -24.5l1 -13v-350h100v350q0 2 0.5 5.5t3 12t7 15t15 12t24.5 5.5z" />
211
+<glyph unicode="&#xe180;" d="M1200 1100v-56q-4 0 -11 -0.5t-24 -3t-30 -7.5t-24 -15t-11 -24v-888q0 -22 25 -34.5t50 -13.5l25 -2v-56h-400v56q75 0 87.5 6.5t12.5 43.5v394h-500v-394q0 -37 12.5 -43.5t87.5 -6.5v-56h-400v56q4 0 11 0.5t24 3t30 7.5t24 15t11 24v888q0 22 -25 34.5t-50 13.5 l-25 2v56h400v-56q-75 0 -87.5 -6.5t-12.5 -43.5v-394h500v394q0 37 -12.5 43.5t-87.5 6.5v56h400z" />
212
+<glyph unicode="&#xe181;" d="M675 1000h375q21 0 35.5 -14.5t14.5 -35.5v-150h-105l-295 -98v98l-200 200h-400l100 100h375zM100 900h300q41 0 70.5 -29.5t29.5 -70.5v-500q0 -41 -29.5 -70.5t-70.5 -29.5h-300q-41 0 -70.5 29.5t-29.5 70.5v500q0 41 29.5 70.5t70.5 29.5zM100 800v-200h300v200 h-300zM1100 535l-400 -133v163l400 133v-163zM100 500v-200h300v200h-300zM1100 398v-248q0 -21 -14.5 -35.5t-35.5 -14.5h-375l-100 -100h-375l-100 100h400l200 200h105z" />
213
+<glyph unicode="&#xe182;" d="M17 1007l162 162q17 17 40 14t37 -22l139 -194q14 -20 11 -44.5t-20 -41.5l-119 -118q102 -142 228 -268t267 -227l119 118q17 17 42.5 19t44.5 -12l192 -136q19 -14 22.5 -37.5t-13.5 -40.5l-163 -162q-3 -1 -9.5 -1t-29.5 2t-47.5 6t-62.5 14.5t-77.5 26.5t-90 42.5 t-101.5 60t-111 83t-119 108.5q-74 74 -133.5 150.5t-94.5 138.5t-60 119.5t-34.5 100t-15 74.5t-4.5 48z" />
214
+<glyph unicode="&#xe183;" d="M600 1100q92 0 175 -10.5t141.5 -27t108.5 -36.5t81.5 -40t53.5 -37t31 -27l9 -10v-200q0 -21 -14.5 -33t-34.5 -9l-202 34q-20 3 -34.5 20t-14.5 38v146q-141 24 -300 24t-300 -24v-146q0 -21 -14.5 -38t-34.5 -20l-202 -34q-20 -3 -34.5 9t-14.5 33v200q3 4 9.5 10.5 t31 26t54 37.5t80.5 39.5t109 37.5t141 26.5t175 10.5zM600 795q56 0 97 -9.5t60 -23.5t30 -28t12 -24l1 -10v-50l365 -303q14 -15 24.5 -40t10.5 -45v-212q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v212q0 20 10.5 45t24.5 40l365 303v50 q0 4 1 10.5t12 23t30 29t60 22.5t97 10z" />
215
+<glyph unicode="&#xe184;" d="M1100 700l-200 -200h-600l-200 200v500h200v-200h200v200h200v-200h200v200h200v-500zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-12l137 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5 t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
216
+<glyph unicode="&#xe185;" d="M700 1100h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-1000h300v1000q0 41 -29.5 70.5t-70.5 29.5zM1100 800h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-700h300v700q0 41 -29.5 70.5t-70.5 29.5zM400 0h-300v400q0 41 29.5 70.5t70.5 29.5h100q41 0 70.5 -29.5t29.5 -70.5v-400z " />
217
+<glyph unicode="&#xe186;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-100h200v-300h-300v100h200v100h-200v300h300v-100zM900 700v-300l-100 -100h-200v500h200z M700 700v-300h100v300h-100z" />
218
+<glyph unicode="&#xe187;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 300h-100v200h-100v-200h-100v500h100v-200h100v200h100v-500zM900 700v-300l-100 -100h-200v500h200z M700 700v-300h100v300h-100z" />
219
+<glyph unicode="&#xe188;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-300h200v-100h-300v500h300v-100zM900 700h-200v-300h200v-100h-300v500h300v-100z" />
220
+<glyph unicode="&#xe189;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 400l-300 150l300 150v-300zM900 550l-300 -150v300z" />
221
+<glyph unicode="&#xe190;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM900 300h-700v500h700v-500zM800 700h-130q-38 0 -66.5 -43t-28.5 -108t27 -107t68 -42h130v300zM300 700v-300 h130q41 0 68 42t27 107t-28.5 108t-66.5 43h-130z" />
222
+<glyph unicode="&#xe191;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-100h200v-300h-300v100h200v100h-200v300h300v-100zM900 300h-100v400h-100v100h200v-500z M700 300h-100v100h100v-100z" />
223
+<glyph unicode="&#xe192;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM300 700h200v-400h-300v500h100v-100zM900 300h-100v400h-100v100h200v-500zM300 600v-200h100v200h-100z M700 300h-100v100h100v-100z" />
224
+<glyph unicode="&#xe193;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 500l-199 -200h-100v50l199 200v150h-200v100h300v-300zM900 300h-100v400h-100v100h200v-500zM701 300h-100 v100h100v-100z" />
225
+<glyph unicode="&#xe194;" d="M600 1191q120 0 229.5 -47t188.5 -126t126 -188.5t47 -229.5t-47 -229.5t-126 -188.5t-188.5 -126t-229.5 -47t-229.5 47t-188.5 126t-126 188.5t-47 229.5t47 229.5t126 188.5t188.5 126t229.5 47zM600 1021q-114 0 -211 -56.5t-153.5 -153.5t-56.5 -211t56.5 -211 t153.5 -153.5t211 -56.5t211 56.5t153.5 153.5t56.5 211t-56.5 211t-153.5 153.5t-211 56.5zM800 700h-300v-200h300v-100h-300l-100 100v200l100 100h300v-100z" />
226
+<glyph unicode="&#xe195;" d="M600 1191q120 0 229.5 -47t188.5 -126t126 -188.5t47 -229.5t-47 -229.5t-126 -188.5t-188.5 -126t-229.5 -47t-229.5 47t-188.5 126t-126 188.5t-47 229.5t47 229.5t126 188.5t188.5 126t229.5 47zM600 1021q-114 0 -211 -56.5t-153.5 -153.5t-56.5 -211t56.5 -211 t153.5 -153.5t211 -56.5t211 56.5t153.5 153.5t56.5 211t-56.5 211t-153.5 153.5t-211 56.5zM800 700v-100l-50 -50l100 -100v-50h-100l-100 100h-150v-100h-100v400h300zM500 700v-100h200v100h-200z" />
227
+<glyph unicode="&#xe197;" d="M503 1089q110 0 200.5 -59.5t134.5 -156.5q44 14 90 14q120 0 205 -86.5t85 -207t-85 -207t-205 -86.5h-128v250q0 21 -14.5 35.5t-35.5 14.5h-300q-21 0 -35.5 -14.5t-14.5 -35.5v-250h-222q-80 0 -136 57.5t-56 136.5q0 69 43 122.5t108 67.5q-2 19 -2 37q0 100 49 185 t134 134t185 49zM525 500h150q10 0 17.5 -7.5t7.5 -17.5v-275h137q21 0 26 -11.5t-8 -27.5l-223 -244q-13 -16 -32 -16t-32 16l-223 244q-13 16 -8 27.5t26 11.5h137v275q0 10 7.5 17.5t17.5 7.5z" />
228
+<glyph unicode="&#xe198;" d="M502 1089q110 0 201 -59.5t135 -156.5q43 15 89 15q121 0 206 -86.5t86 -206.5q0 -99 -60 -181t-150 -110l-378 360q-13 16 -31.5 16t-31.5 -16l-381 -365h-9q-79 0 -135.5 57.5t-56.5 136.5q0 69 43 122.5t108 67.5q-2 19 -2 38q0 100 49 184.5t133.5 134t184.5 49.5z M632 467l223 -228q13 -16 8 -27.5t-26 -11.5h-137v-275q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v275h-137q-21 0 -26 11.5t8 27.5q199 204 223 228q19 19 31.5 19t32.5 -19z" />
229
+<glyph unicode="&#xe199;" d="M700 100v100h400l-270 300h170l-270 300h170l-300 333l-300 -333h170l-270 -300h170l-270 -300h400v-100h-50q-21 0 -35.5 -14.5t-14.5 -35.5v-50h400v50q0 21 -14.5 35.5t-35.5 14.5h-50z" />
230
+<glyph unicode="&#xe200;" d="M600 1179q94 0 167.5 -56.5t99.5 -145.5q89 -6 150.5 -71.5t61.5 -155.5q0 -61 -29.5 -112.5t-79.5 -82.5q9 -29 9 -55q0 -74 -52.5 -126.5t-126.5 -52.5q-55 0 -100 30v-251q21 0 35.5 -14.5t14.5 -35.5v-50h-300v50q0 21 14.5 35.5t35.5 14.5v251q-45 -30 -100 -30 q-74 0 -126.5 52.5t-52.5 126.5q0 18 4 38q-47 21 -75.5 65t-28.5 97q0 74 52.5 126.5t126.5 52.5q5 0 23 -2q0 2 -1 10t-1 13q0 116 81.5 197.5t197.5 81.5z" />
231
+<glyph unicode="&#xe201;" d="M1010 1010q111 -111 150.5 -260.5t0 -299t-150.5 -260.5q-83 -83 -191.5 -126.5t-218.5 -43.5t-218.5 43.5t-191.5 126.5q-111 111 -150.5 260.5t0 299t150.5 260.5q83 83 191.5 126.5t218.5 43.5t218.5 -43.5t191.5 -126.5zM476 1065q-4 0 -8 -1q-121 -34 -209.5 -122.5 t-122.5 -209.5q-4 -12 2.5 -23t18.5 -14l36 -9q3 -1 7 -1q23 0 29 22q27 96 98 166q70 71 166 98q11 3 17.5 13.5t3.5 22.5l-9 35q-3 13 -14 19q-7 4 -15 4zM512 920q-4 0 -9 -2q-80 -24 -138.5 -82.5t-82.5 -138.5q-4 -13 2 -24t19 -14l34 -9q4 -1 8 -1q22 0 28 21 q18 58 58.5 98.5t97.5 58.5q12 3 18 13.5t3 21.5l-9 35q-3 12 -14 19q-7 4 -15 4zM719.5 719.5q-49.5 49.5 -119.5 49.5t-119.5 -49.5t-49.5 -119.5t49.5 -119.5t119.5 -49.5t119.5 49.5t49.5 119.5t-49.5 119.5zM855 551q-22 0 -28 -21q-18 -58 -58.5 -98.5t-98.5 -57.5 q-11 -4 -17 -14.5t-3 -21.5l9 -35q3 -12 14 -19q7 -4 15 -4q4 0 9 2q80 24 138.5 82.5t82.5 138.5q4 13 -2.5 24t-18.5 14l-34 9q-4 1 -8 1zM1000 515q-23 0 -29 -22q-27 -96 -98 -166q-70 -71 -166 -98q-11 -3 -17.5 -13.5t-3.5 -22.5l9 -35q3 -13 14 -19q7 -4 15 -4 q4 0 8 1q121 34 209.5 122.5t122.5 209.5q4 12 -2.5 23t-18.5 14l-36 9q-3 1 -7 1z" />
232
+<glyph unicode="&#xe202;" d="M700 800h300v-380h-180v200h-340v-200h-380v755q0 10 7.5 17.5t17.5 7.5h575v-400zM1000 900h-200v200zM700 300h162l-212 -212l-212 212h162v200h100v-200zM520 0h-395q-10 0 -17.5 7.5t-7.5 17.5v395zM1000 220v-195q0 -10 -7.5 -17.5t-17.5 -7.5h-195z" />
233
+<glyph unicode="&#xe203;" d="M700 800h300v-520l-350 350l-550 -550v1095q0 10 7.5 17.5t17.5 7.5h575v-400zM1000 900h-200v200zM862 200h-162v-200h-100v200h-162l212 212zM480 0h-355q-10 0 -17.5 7.5t-7.5 17.5v55h380v-80zM1000 80v-55q0 -10 -7.5 -17.5t-17.5 -7.5h-155v80h180z" />
234
+<glyph unicode="&#xe204;" d="M1162 800h-162v-200h100l100 -100h-300v300h-162l212 212zM200 800h200q27 0 40 -2t29.5 -10.5t23.5 -30t7 -57.5h300v-100h-600l-200 -350v450h100q0 36 7 57.5t23.5 30t29.5 10.5t40 2zM800 400h240l-240 -400h-800l300 500h500v-100z" />
235
+<glyph unicode="&#xe205;" d="M650 1100h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5zM1000 850v150q41 0 70.5 -29.5t29.5 -70.5v-800 q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-1 0 -20 4l246 246l-326 326v324q0 41 29.5 70.5t70.5 29.5v-150q0 -62 44 -106t106 -44h300q62 0 106 44t44 106zM412 250l-212 -212v162h-200v100h200v162z" />
236
+<glyph unicode="&#xe206;" d="M450 1100h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5zM800 850v150q41 0 70.5 -29.5t29.5 -70.5v-500 h-200v-300h200q0 -36 -7 -57.5t-23.5 -30t-29.5 -10.5t-40 -2h-600q-41 0 -70.5 29.5t-29.5 70.5v800q0 41 29.5 70.5t70.5 29.5v-150q0 -62 44 -106t106 -44h300q62 0 106 44t44 106zM1212 250l-212 -212v162h-200v100h200v162z" />
237
+<glyph unicode="&#xe209;" d="M658 1197l637 -1104q23 -38 7 -65.5t-60 -27.5h-1276q-44 0 -60 27.5t7 65.5l637 1104q22 39 54 39t54 -39zM704 800h-208q-20 0 -32 -14.5t-8 -34.5l58 -302q4 -20 21.5 -34.5t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5zM500 300v-100h200 v100h-200z" />
238
+<glyph unicode="&#xe210;" d="M425 1100h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM425 800h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5 t17.5 7.5zM825 800h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM25 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150 q0 10 7.5 17.5t17.5 7.5zM425 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM825 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5 v150q0 10 7.5 17.5t17.5 7.5zM25 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM425 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5 t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM825 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
239
+<glyph unicode="&#xe211;" d="M700 1200h100v-200h-100v-100h350q62 0 86.5 -39.5t-3.5 -94.5l-66 -132q-41 -83 -81 -134h-772q-40 51 -81 134l-66 132q-28 55 -3.5 94.5t86.5 39.5h350v100h-100v200h100v100h200v-100zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-12l137 -100 h-950l138 100h-13q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
240
+<glyph unicode="&#xe212;" d="M600 1300q40 0 68.5 -29.5t28.5 -70.5h-194q0 41 28.5 70.5t68.5 29.5zM443 1100h314q18 -37 18 -75q0 -8 -3 -25h328q41 0 44.5 -16.5t-30.5 -38.5l-175 -145h-678l-178 145q-34 22 -29 38.5t46 16.5h328q-3 17 -3 25q0 38 18 75zM250 700h700q21 0 35.5 -14.5 t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-150v-200l275 -200h-950l275 200v200h-150q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
241
+<glyph unicode="&#xe213;" d="M600 1181q75 0 128 -53t53 -128t-53 -128t-128 -53t-128 53t-53 128t53 128t128 53zM602 798h46q34 0 55.5 -28.5t21.5 -86.5q0 -76 39 -183h-324q39 107 39 183q0 58 21.5 86.5t56.5 28.5h45zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13 l138 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
242
+<glyph unicode="&#xe214;" d="M600 1300q47 0 92.5 -53.5t71 -123t25.5 -123.5q0 -78 -55.5 -133.5t-133.5 -55.5t-133.5 55.5t-55.5 133.5q0 62 34 143l144 -143l111 111l-163 163q34 26 63 26zM602 798h46q34 0 55.5 -28.5t21.5 -86.5q0 -76 39 -183h-324q39 107 39 183q0 58 21.5 86.5t56.5 28.5h45 zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13l138 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
243
+<glyph unicode="&#xe215;" d="M600 1200l300 -161v-139h-300q0 -57 18.5 -108t50 -91.5t63 -72t70 -67.5t57.5 -61h-530q-60 83 -90.5 177.5t-30.5 178.5t33 164.5t87.5 139.5t126 96.5t145.5 41.5v-98zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13l138 -100h-950l137 100 h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
244
+<glyph unicode="&#xe216;" d="M600 1300q41 0 70.5 -29.5t29.5 -70.5v-78q46 -26 73 -72t27 -100v-50h-400v50q0 54 27 100t73 72v78q0 41 29.5 70.5t70.5 29.5zM400 800h400q54 0 100 -27t72 -73h-172v-100h200v-100h-200v-100h200v-100h-200v-100h200q0 -83 -58.5 -141.5t-141.5 -58.5h-400 q-83 0 -141.5 58.5t-58.5 141.5v400q0 83 58.5 141.5t141.5 58.5z" />
245
+<glyph unicode="&#xe218;" d="M150 1100h900q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5zM125 400h950q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-283l224 -224q13 -13 13 -31.5t-13 -32 t-31.5 -13.5t-31.5 13l-88 88h-524l-87 -88q-13 -13 -32 -13t-32 13.5t-13 32t13 31.5l224 224h-289q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM541 300l-100 -100h324l-100 100h-124z" />
246
+<glyph unicode="&#xe219;" d="M200 1100h800q83 0 141.5 -58.5t58.5 -141.5v-200h-100q0 41 -29.5 70.5t-70.5 29.5h-250q-41 0 -70.5 -29.5t-29.5 -70.5h-100q0 41 -29.5 70.5t-70.5 29.5h-250q-41 0 -70.5 -29.5t-29.5 -70.5h-100v200q0 83 58.5 141.5t141.5 58.5zM100 600h1000q41 0 70.5 -29.5 t29.5 -70.5v-300h-1200v300q0 41 29.5 70.5t70.5 29.5zM300 100v-50q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v50h200zM1100 100v-50q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v50h200z" />
247
+<glyph unicode="&#xe221;" d="M480 1165l682 -683q31 -31 31 -75.5t-31 -75.5l-131 -131h-481l-517 518q-32 31 -32 75.5t32 75.5l295 296q31 31 75.5 31t76.5 -31zM108 794l342 -342l303 304l-341 341zM250 100h800q21 0 35.5 -14.5t14.5 -35.5v-50h-900v50q0 21 14.5 35.5t35.5 14.5z" />
248
+<glyph unicode="&#xe223;" d="M1057 647l-189 506q-8 19 -27.5 33t-40.5 14h-400q-21 0 -40.5 -14t-27.5 -33l-189 -506q-8 -19 1.5 -33t30.5 -14h625v-150q0 -21 14.5 -35.5t35.5 -14.5t35.5 14.5t14.5 35.5v150h125q21 0 30.5 14t1.5 33zM897 0h-595v50q0 21 14.5 35.5t35.5 14.5h50v50 q0 21 14.5 35.5t35.5 14.5h48v300h200v-300h47q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-50z" />
249
+<glyph unicode="&#xe224;" d="M900 800h300v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-375v591l-300 300v84q0 10 7.5 17.5t17.5 7.5h375v-400zM1200 900h-200v200zM400 600h300v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-650q-10 0 -17.5 7.5t-7.5 17.5v950q0 10 7.5 17.5t17.5 7.5h375v-400zM700 700h-200v200z " />
250
+<glyph unicode="&#xe225;" d="M484 1095h195q75 0 146 -32.5t124 -86t89.5 -122.5t48.5 -142q18 -14 35 -20q31 -10 64.5 6.5t43.5 48.5q10 34 -15 71q-19 27 -9 43q5 8 12.5 11t19 -1t23.5 -16q41 -44 39 -105q-3 -63 -46 -106.5t-104 -43.5h-62q-7 -55 -35 -117t-56 -100l-39 -234q-3 -20 -20 -34.5 t-38 -14.5h-100q-21 0 -33 14.5t-9 34.5l12 70q-49 -14 -91 -14h-195q-24 0 -65 8l-11 -64q-3 -20 -20 -34.5t-38 -14.5h-100q-21 0 -33 14.5t-9 34.5l26 157q-84 74 -128 175l-159 53q-19 7 -33 26t-14 40v50q0 21 14.5 35.5t35.5 14.5h124q11 87 56 166l-111 95 q-16 14 -12.5 23.5t24.5 9.5h203q116 101 250 101zM675 1000h-250q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h250q10 0 17.5 7.5t7.5 17.5v50q0 10 -7.5 17.5t-17.5 7.5z" />
251
+<glyph unicode="&#xe226;" d="M641 900l423 247q19 8 42 2.5t37 -21.5l32 -38q14 -15 12.5 -36t-17.5 -34l-139 -120h-390zM50 1100h106q67 0 103 -17t66 -71l102 -212h823q21 0 35.5 -14.5t14.5 -35.5v-50q0 -21 -14 -40t-33 -26l-737 -132q-23 -4 -40 6t-26 25q-42 67 -100 67h-300q-62 0 -106 44 t-44 106v200q0 62 44 106t106 44zM173 928h-80q-19 0 -28 -14t-9 -35v-56q0 -51 42 -51h134q16 0 21.5 8t5.5 24q0 11 -16 45t-27 51q-18 28 -43 28zM550 727q-32 0 -54.5 -22.5t-22.5 -54.5t22.5 -54.5t54.5 -22.5t54.5 22.5t22.5 54.5t-22.5 54.5t-54.5 22.5zM130 389 l152 130q18 19 34 24t31 -3.5t24.5 -17.5t25.5 -28q28 -35 50.5 -51t48.5 -13l63 5l48 -179q13 -61 -3.5 -97.5t-67.5 -79.5l-80 -69q-47 -40 -109 -35.5t-103 51.5l-130 151q-40 47 -35.5 109.5t51.5 102.5zM380 377l-102 -88q-31 -27 2 -65l37 -43q13 -15 27.5 -19.5 t31.5 6.5l61 53q19 16 14 49q-2 20 -12 56t-17 45q-11 12 -19 14t-23 -8z" />
252
+<glyph unicode="&#xe227;" d="M625 1200h150q10 0 17.5 -7.5t7.5 -17.5v-109q79 -33 131 -87.5t53 -128.5q1 -46 -15 -84.5t-39 -61t-46 -38t-39 -21.5l-17 -6q6 0 15 -1.5t35 -9t50 -17.5t53 -30t50 -45t35.5 -64t14.5 -84q0 -59 -11.5 -105.5t-28.5 -76.5t-44 -51t-49.5 -31.5t-54.5 -16t-49.5 -6.5 t-43.5 -1v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-100v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-175q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h75v600h-75q-10 0 -17.5 7.5t-7.5 17.5v150 q0 10 7.5 17.5t17.5 7.5h175v75q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-75h100v75q0 10 7.5 17.5t17.5 7.5zM400 900v-200h263q28 0 48.5 10.5t30 25t15 29t5.5 25.5l1 10q0 4 -0.5 11t-6 24t-15 30t-30 24t-48.5 11h-263zM400 500v-200h363q28 0 48.5 10.5 t30 25t15 29t5.5 25.5l1 10q0 4 -0.5 11t-6 24t-15 30t-30 24t-48.5 11h-363z" />
253
+<glyph unicode="&#xe230;" d="M212 1198h780q86 0 147 -61t61 -147v-416q0 -51 -18 -142.5t-36 -157.5l-18 -66q-29 -87 -93.5 -146.5t-146.5 -59.5h-572q-82 0 -147 59t-93 147q-8 28 -20 73t-32 143.5t-20 149.5v416q0 86 61 147t147 61zM600 1045q-70 0 -132.5 -11.5t-105.5 -30.5t-78.5 -41.5 t-57 -45t-36 -41t-20.5 -30.5l-6 -12l156 -243h560l156 243q-2 5 -6 12.5t-20 29.5t-36.5 42t-57 44.5t-79 42t-105 29.5t-132.5 12zM762 703h-157l195 261z" />
254
+<glyph unicode="&#xe231;" d="M475 1300h150q103 0 189 -86t86 -189v-500q0 -41 -42 -83t-83 -42h-450q-41 0 -83 42t-42 83v500q0 103 86 189t189 86zM700 300v-225q0 -21 -27 -48t-48 -27h-150q-21 0 -48 27t-27 48v225h300z" />
255
+<glyph unicode="&#xe232;" d="M475 1300h96q0 -150 89.5 -239.5t239.5 -89.5v-446q0 -41 -42 -83t-83 -42h-450q-41 0 -83 42t-42 83v500q0 103 86 189t189 86zM700 300v-225q0 -21 -27 -48t-48 -27h-150q-21 0 -48 27t-27 48v225h300z" />
256
+<glyph unicode="&#xe233;" d="M1294 767l-638 -283l-378 170l-78 -60v-224l100 -150v-199l-150 148l-150 -149v200l100 150v250q0 4 -0.5 10.5t0 9.5t1 8t3 8t6.5 6l47 40l-147 65l642 283zM1000 380l-350 -166l-350 166v147l350 -165l350 165v-147z" />
257
+<glyph unicode="&#xe234;" d="M250 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM650 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM1050 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44z" />
258
+<glyph unicode="&#xe235;" d="M550 1100q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM550 700q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM550 300q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44z" />
259
+<glyph unicode="&#xe236;" d="M125 1100h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM125 700h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5 t17.5 7.5zM125 300h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
260
+<glyph unicode="&#xe237;" d="M350 1200h500q162 0 256 -93.5t94 -256.5v-500q0 -165 -93.5 -257.5t-256.5 -92.5h-500q-165 0 -257.5 92.5t-92.5 257.5v500q0 165 92.5 257.5t257.5 92.5zM900 1000h-600q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h600q41 0 70.5 29.5 t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5zM350 900h500q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -14.5 -35.5t-35.5 -14.5h-500q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 14.5 35.5t35.5 14.5zM400 800v-200h400v200h-400z" />
261
+<glyph unicode="&#xe238;" d="M150 1100h1000q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5 t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5z" />
262
+<glyph unicode="&#xe239;" d="M650 1187q87 -67 118.5 -156t0 -178t-118.5 -155q-87 66 -118.5 155t0 178t118.5 156zM300 800q124 0 212 -88t88 -212q-124 0 -212 88t-88 212zM1000 800q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM300 500q124 0 212 -88t88 -212q-124 0 -212 88t-88 212z M1000 500q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM700 199v-144q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v142q40 -4 43 -4q17 0 57 6z" />
263
+<glyph unicode="&#xe240;" d="M745 878l69 19q25 6 45 -12l298 -295q11 -11 15 -26.5t-2 -30.5q-5 -14 -18 -23.5t-28 -9.5h-8q1 0 1 -13q0 -29 -2 -56t-8.5 -62t-20 -63t-33 -53t-51 -39t-72.5 -14h-146q-184 0 -184 288q0 24 10 47q-20 4 -62 4t-63 -4q11 -24 11 -47q0 -288 -184 -288h-142 q-48 0 -84.5 21t-56 51t-32 71.5t-16 75t-3.5 68.5q0 13 2 13h-7q-15 0 -27.5 9.5t-18.5 23.5q-6 15 -2 30.5t15 25.5l298 296q20 18 46 11l76 -19q20 -5 30.5 -22.5t5.5 -37.5t-22.5 -31t-37.5 -5l-51 12l-182 -193h891l-182 193l-44 -12q-20 -5 -37.5 6t-22.5 31t6 37.5 t31 22.5z" />
264
+<glyph unicode="&#xe241;" d="M1200 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-850q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v850h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM500 450h-25q0 15 -4 24.5t-9 14.5t-17 7.5t-20 3t-25 0.5h-100v-425q0 -11 12.5 -17.5t25.5 -7.5h12v-50h-200v50q50 0 50 25v425h-100q-17 0 -25 -0.5t-20 -3t-17 -7.5t-9 -14.5t-4 -24.5h-25v150h500v-150z" />
265
+<glyph unicode="&#xe242;" d="M1000 300v50q-25 0 -55 32q-14 14 -25 31t-16 27l-4 11l-289 747h-69l-300 -754q-18 -35 -39 -56q-9 -9 -24.5 -18.5t-26.5 -14.5l-11 -5v-50h273v50q-49 0 -78.5 21.5t-11.5 67.5l69 176h293l61 -166q13 -34 -3.5 -66.5t-55.5 -32.5v-50h312zM412 691l134 342l121 -342 h-255zM1100 150v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5z" />
266
+<glyph unicode="&#xe243;" d="M50 1200h1100q21 0 35.5 -14.5t14.5 -35.5v-1100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v1100q0 21 14.5 35.5t35.5 14.5zM611 1118h-70q-13 0 -18 -12l-299 -753q-17 -32 -35 -51q-18 -18 -56 -34q-12 -5 -12 -18v-50q0 -8 5.5 -14t14.5 -6 h273q8 0 14 6t6 14v50q0 8 -6 14t-14 6q-55 0 -71 23q-10 14 0 39l63 163h266l57 -153q11 -31 -6 -55q-12 -17 -36 -17q-8 0 -14 -6t-6 -14v-50q0 -8 6 -14t14 -6h313q8 0 14 6t6 14v50q0 7 -5.5 13t-13.5 7q-17 0 -42 25q-25 27 -40 63h-1l-288 748q-5 12 -19 12zM639 611 h-197l103 264z" />
267
+<glyph unicode="&#xe244;" d="M1200 1100h-1200v100h1200v-100zM50 1000h400q21 0 35.5 -14.5t14.5 -35.5v-900q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v900q0 21 14.5 35.5t35.5 14.5zM650 1000h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM700 900v-300h300v300h-300z" />
268
+<glyph unicode="&#xe245;" d="M50 1200h400q21 0 35.5 -14.5t14.5 -35.5v-900q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v900q0 21 14.5 35.5t35.5 14.5zM650 700h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5zM700 600v-300h300v300h-300zM1200 0h-1200v100h1200v-100z" />
269
+<glyph unicode="&#xe246;" d="M50 1000h400q21 0 35.5 -14.5t14.5 -35.5v-350h100v150q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-150h100v-100h-100v-150q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v150h-100v-350q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5zM700 700v-300h300v300h-300z" />
270
+<glyph unicode="&#xe247;" d="M100 0h-100v1200h100v-1200zM250 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM300 1000v-300h300v300h-300zM250 500h900q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
271
+<glyph unicode="&#xe248;" d="M600 1100h150q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-150v-100h450q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h350v100h-150q-21 0 -35.5 14.5 t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h150v100h100v-100zM400 1000v-300h300v300h-300z" />
272
+<glyph unicode="&#xe249;" d="M1200 0h-100v1200h100v-1200zM550 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM600 1000v-300h300v300h-300zM50 500h900q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
273
+<glyph unicode="&#xe250;" d="M865 565l-494 -494q-23 -23 -41 -23q-14 0 -22 13.5t-8 38.5v1000q0 25 8 38.5t22 13.5q18 0 41 -23l494 -494q14 -14 14 -35t-14 -35z" />
274
+<glyph unicode="&#xe251;" d="M335 635l494 494q29 29 50 20.5t21 -49.5v-1000q0 -41 -21 -49.5t-50 20.5l-494 494q-14 14 -14 35t14 35z" />
275
+<glyph unicode="&#xe252;" d="M100 900h1000q41 0 49.5 -21t-20.5 -50l-494 -494q-14 -14 -35 -14t-35 14l-494 494q-29 29 -20.5 50t49.5 21z" />
276
+<glyph unicode="&#xe253;" d="M635 865l494 -494q29 -29 20.5 -50t-49.5 -21h-1000q-41 0 -49.5 21t20.5 50l494 494q14 14 35 14t35 -14z" />
277
+<glyph unicode="&#xe254;" d="M700 741v-182l-692 -323v221l413 193l-413 193v221zM1200 0h-800v200h800v-200z" />
278
+<glyph unicode="&#xe255;" d="M1200 900h-200v-100h200v-100h-300v300h200v100h-200v100h300v-300zM0 700h50q0 21 4 37t9.5 26.5t18 17.5t22 11t28.5 5.5t31 2t37 0.5h100v-550q0 -22 -25 -34.5t-50 -13.5l-25 -2v-100h400v100q-4 0 -11 0.5t-24 3t-30 7t-24 15t-11 24.5v550h100q25 0 37 -0.5t31 -2 t28.5 -5.5t22 -11t18 -17.5t9.5 -26.5t4 -37h50v300h-800v-300z" />
279
+<glyph unicode="&#xe256;" d="M800 700h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-100v-550q0 -22 25 -34.5t50 -14.5l25 -1v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v550h-100q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h800v-300zM1100 200h-200v-100h200v-100h-300v300h200v100h-200v100h300v-300z" />
280
+<glyph unicode="&#xe257;" d="M701 1098h160q16 0 21 -11t-7 -23l-464 -464l464 -464q12 -12 7 -23t-21 -11h-160q-13 0 -23 9l-471 471q-7 8 -7 18t7 18l471 471q10 9 23 9z" />
281
+<glyph unicode="&#xe258;" d="M339 1098h160q13 0 23 -9l471 -471q7 -8 7 -18t-7 -18l-471 -471q-10 -9 -23 -9h-160q-16 0 -21 11t7 23l464 464l-464 464q-12 12 -7 23t21 11z" />
282
+<glyph unicode="&#xe259;" d="M1087 882q11 -5 11 -21v-160q0 -13 -9 -23l-471 -471q-8 -7 -18 -7t-18 7l-471 471q-9 10 -9 23v160q0 16 11 21t23 -7l464 -464l464 464q12 12 23 7z" />
283
+<glyph unicode="&#xe260;" d="M618 993l471 -471q9 -10 9 -23v-160q0 -16 -11 -21t-23 7l-464 464l-464 -464q-12 -12 -23 -7t-11 21v160q0 13 9 23l471 471q8 7 18 7t18 -7z" />
284
+<glyph unicode="&#xf8ff;" d="M1000 1200q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM450 1000h100q21 0 40 -14t26 -33l79 -194q5 1 16 3q34 6 54 9.5t60 7t65.5 1t61 -10t56.5 -23t42.5 -42t29 -64t5 -92t-19.5 -121.5q-1 -7 -3 -19.5t-11 -50t-20.5 -73t-32.5 -81.5t-46.5 -83t-64 -70 t-82.5 -50q-13 -5 -42 -5t-65.5 2.5t-47.5 2.5q-14 0 -49.5 -3.5t-63 -3.5t-43.5 7q-57 25 -104.5 78.5t-75 111.5t-46.5 112t-26 90l-7 35q-15 63 -18 115t4.5 88.5t26 64t39.5 43.5t52 25.5t58.5 13t62.5 2t59.5 -4.5t55.5 -8l-147 192q-12 18 -5.5 30t27.5 12z" />
285
+<glyph unicode="&#x1f511;" d="M250 1200h600q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-150v-500l-255 -178q-19 -9 -32 -1t-13 29v650h-150q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM400 1100v-100h300v100h-300z" />
286
+<glyph unicode="&#x1f6aa;" d="M250 1200h750q39 0 69.5 -40.5t30.5 -84.5v-933l-700 -117v950l600 125h-700v-1000h-100v1025q0 23 15.5 49t34.5 26zM500 525v-100l100 20v100z" />
287
+</font>
288
+</defs></svg> 

BIN
CacheControl-test/fonts/glyphicons-halflings-regular.ttf Datei anzeigen


BIN
CacheControl-test/fonts/glyphicons-halflings-regular.woff Datei anzeigen


BIN
CacheControl-test/fonts/glyphicons-halflings-regular.woff2 Datei anzeigen


+ 20
- 0
CacheControl-test/packages.config Datei anzeigen

@@ -0,0 +1,20 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<packages>
3
+  <package id="Antlr" version="3.5.0.2" targetFramework="net45" />
4
+  <package id="bootstrap" version="3.3.4" targetFramework="net45" />
5
+  <package id="jQuery" version="2.1.4" targetFramework="net45" />
6
+  <package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net45" />
7
+  <package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net45" />
8
+  <package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net45" />
9
+  <package id="Microsoft.AspNet.WebApi" version="5.2.3" targetFramework="net45" />
10
+  <package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net45" />
11
+  <package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net45" />
12
+  <package id="Microsoft.AspNet.WebApi.HelpPage" version="5.2.3" targetFramework="net45" />
13
+  <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.3" targetFramework="net45" />
14
+  <package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net45" />
15
+  <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
16
+  <package id="Modernizr" version="2.8.3" targetFramework="net45" />
17
+  <package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
18
+  <package id="Respond" version="1.4.2" targetFramework="net45" />
19
+  <package id="WebGrease" version="1.6.0" targetFramework="net45" />
20
+</packages>

+ 3
- 1
CacheControl/Business/HttpExtensions/CacheOutputConfiguration.cs Datei anzeigen

@@ -100,7 +100,9 @@ namespace iiie.CacheControl.Business.HttpExtensions
100 100
             if (cacheOutputProvider == null)
101 101
             {
102 102
                 if (_cacheType == OutputCacheType.File)
103
-                cacheOutputProvider = new MemoryOutputCache();
103
+                    cacheOutputProvider = new FileOuputCache();
104
+                else
105
+                    cacheOutputProvider = new MemoryOutputCache();
104 106
             }
105 107
             return cacheOutputProvider;
106 108
         }

+ 41
- 17
CacheControl/Business/OutputCache/FileOuputCache.cs Datei anzeigen

@@ -1,4 +1,5 @@
1
-using System.IO;
1
+using System;
2
+using System.IO;
2 3
 using System.Runtime.Serialization.Formatters.Binary;
3 4
 using System.Web;
4 5
 
@@ -6,43 +7,66 @@ namespace iiie.CacheControl.Business.OutputCache
6 7
 {
7 8
     public class FileOuputCache : IOutputCache
8 9
     {
9
-        public string TempPath { get; set; }
10
+        public string TempPath
11
+        {
12
+            get { return Path.Combine(Path.GetTempPath(), "co-planningCache"); }
13
+        }
10 14
 
11 15
         public string GetPath(string key)
12 16
         {
13 17
             key = HttpUtility.UrlEncode(key);
18
+            if (!Directory.Exists(TempPath))
19
+                Directory.CreateDirectory(TempPath);
14 20
             return Path.Combine(TempPath, key);
15 21
         }
16 22
 
17 23
         public override object Get(string key)
18 24
         {
19
-            key = GetPath(key);
20
-            var formatter = new BinaryFormatter();
21
-            var stream = new FileStream(key, FileMode.Open);
22
-            var obj = formatter.Deserialize(stream);
23
-            stream.Close();
24
-            return obj;
25
+            try
26
+            {
27
+                var path = GetPath(key);
28
+                var formatter = new BinaryFormatter();
29
+                var stream = new FileStream(path, FileMode.Open);
30
+                var obj = formatter.Deserialize(stream);
31
+                stream.Close();
32
+                return obj;
33
+            }
34
+            catch (Exception)
35
+            {
36
+                return null;
37
+            }
25 38
         }
26 39
 
27 40
         public override void Remove(string key)
28 41
         {
29
-            key = GetPath(key);
30
-            File.Delete(key);
42
+            var path = GetPath(key);
43
+            File.Delete(path);
31 44
         }
32 45
 
33 46
         public override bool Contains(string key)
34 47
         {
35
-            key = GetPath(key);
36
-            return File.Exists(key);
48
+            var path = GetPath(key);
49
+            return File.Exists(path);
37 50
         }
38 51
 
39 52
         public override void Add(string key, object o)
40 53
         {
41
-            key = GetPath(key);
42
-            var formatter = new BinaryFormatter();
43
-            var stream = new FileStream(key, FileMode.Open);
44
-            formatter.Serialize(stream, o);
45
-            stream.Close();
54
+            FileStream stream = null;
55
+            try
56
+            {
57
+                var path = GetPath(key);
58
+                var formatter = new BinaryFormatter();
59
+                stream = new FileStream(path, FileMode.OpenOrCreate);
60
+                formatter.Serialize(stream, o);
61
+                stream.Close();
62
+                stream = null;
63
+            }
64
+            catch (Exception e)
65
+            {
66
+                if (stream != null)
67
+                    stream.Close();
68
+                Remove(key);
69
+            }
46 70
         }
47 71
     }
48 72
 }

+ 1
- 1
CacheControl/CacheControl.nuspec Datei anzeigen

@@ -9,7 +9,7 @@
9 9
     <projectUrl>https://bitbucket.org/3ie/nuget-3ie</projectUrl>
10 10
     <requireLicenseAcceptance>false</requireLicenseAcceptance>
11 11
     <description>Basic cache control for Web API</description>
12
-    <releaseNotes>First release</releaseNotes>
12
+    <releaseNotes>Added file cache output; Added default file cache folder</releaseNotes>
13 13
     <copyright>Copyright 2015</copyright>
14 14
     <tags>cache control memory file web api</tags>
15 15
   </metadata>

+ 0
- 0
CacheControl/DBO/CacheDBO.cs Datei anzeigen


Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.

Laden…
Abbrechen
Speichern