Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge remote-tracking branch 'upstream/master'

* upstream/master: (21 commits)
  Add MaxHttpCollectionKey support
  44: Updated XML docs for IDependencyScope
  More Validation Performance Improvements
  Incorporate code review feedback for ResultConverters
  Issue 41: fix problem with Web API running in medium trust from the GAC
  Perf: improve conneg accept header sorting
  perf: Optimize return value validation of methods returning a non-generic Task. A direct comparison of the type to typeof(Task) is faster than analyzing if the type is generic or not.
  Code review feedback from bug #26
  Value Validation Performance Improvements
  Added copyright headers and License.txt
  Responding to customer and partner feedback re: the Anti-XSRF helpers.
  Performance improvements around simple parameters from the query string.  This gets about a 2x win in the case of calling get(int,int,int) in an in-memory loop.
  bug fix 395547: Addressing the issue that caused stress test failure on 4.5 where 401 response message sent is received as 500 error
  Remove IHttpControllerActivator.Release()
  Major TaskHelpers.Iterate perf wins. Create a fast-path for Task so that synchronous tasks execute immediately and we avoid any task allocations. This reduces iteration overhead to nearly 0. Remove iteration over Task<T> since nobody used it and it's slow.
  389622 - Escaping special characters in sections is not working
  Revert "257966: Parameterless overload of WebPage::ExecutePageHierarchy throws" Moving fix to next iteration.
  257966: Parameterless overload of WebPage::ExecutePageHierarchy throws when called.
  390625: Move the System.Web.Http.HttpRequestMessageExtensions and HttpResponseMessageExtensions classes to the System.Net.Http namespace
  Updating OAuth references in Microsoft.Web.WebPages.OAuth.Test to point to release version.
  ...

Conflicts:
	src/System.Json/Extensions/JsonValueExtensions.cs
	src/System.Json/JsonValueDynamicMetaObject.cs
  • Loading branch information...
commit 1836deff6a2683b8a5b7dd78f2b591a10b47573e 2 parents f0242c6 + 22878f7
@grendello grendello authored
Showing with 1,043 additions and 368 deletions.
  1. +15 −0 License.txt
  2. +3 −1 src/AptcaCommonAssemblyInfo.cs
  3. +2 −0  src/Common/DictionaryExtensions.cs
  4. +2 −0  src/Common/Error.cs
  5. +3 −1 src/Common/HttpMethodHelper.cs
  6. +2 −0  src/Common/PrefixContainer.cs
  7. +69 −103 src/Common/TaskHelpers.cs
  8. +33 −5 src/Common/TaskHelpersExtensions.cs
  9. +3 −1 src/CommonAssemblyInfo.cs
  10. +2 −0  src/DynamicHelper.cs
  11. +3 −1 src/ExceptionHelper.cs
  12. +2 −0  src/GlobalSuppressions.cs
  13. +2 −0  src/HashCodeCombiner.cs
  14. +3 −1 src/IVirtualPathUtility.cs
  15. +3 −1 src/Microsoft.Web.Helpers/GlobalSuppressions.cs
  16. +3 −1 src/Microsoft.Web.Helpers/Gravatar.cs
  17. +3 −1 src/Microsoft.Web.Helpers/GravatarRating.cs
  18. +3 −1 src/Microsoft.Web.Helpers/LinkShareSite.cs
  19. +3 −1 src/Microsoft.Web.Helpers/PreApplicationStartCode.cs
  20. +2 −0  src/Microsoft.Web.Helpers/Properties/AssemblyInfo.cs
  21. +3 −1 src/Microsoft.Web.Helpers/Themes.cs
  22. +3 −1 src/Microsoft.Web.Helpers/UrlBuilder.cs
  23. +3 −1 src/Microsoft.Web.Helpers/Video.cs
  24. +3 −1 src/Microsoft.Web.Helpers/VirtualPathUtilityBase.cs
  25. +3 −1 src/Microsoft.Web.Helpers/VirtualPathUtilityWrapper.cs
  26. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/DbContextExtensions.cs
  27. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/DbDataController.cs
  28. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/GlobalSuppressions.cs
  29. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/LinqToEntitiesDataController.cs
  30. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/AssociationInfo.cs
  31. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/DbMetadataProviderAttribute.cs
  32. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/LinqToEntitiesMetadataProvider.cs
  33. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/LinqToEntitiesMetadataProviderAttribute.cs
  34. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/LinqToEntitiesTypeDescriptionContext.cs
  35. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/LinqToEntitiesTypeDescriptor.cs
  36. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/MetadataPropertyDescriptorWrapper.cs
  37. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/MetadataWorkspaceUtilities.cs
  38. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/TypeDescriptionContextBase.cs
  39. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/TypeDescriptorBase.cs
  40. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/ObjectContextExtensions.cs
  41. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/ObjectContextUtilities.cs
  42. +3 −1 src/Microsoft.Web.Http.Data.EntityFramework/Properties/AssemblyInfo.cs
  43. +3 −1 src/Microsoft.Web.Http.Data.Helpers/DataControllerMetadataGenerator.cs
  44. +3 −1 src/Microsoft.Web.Http.Data.Helpers/GlobalSuppressions.cs
  45. +3 −1 src/Microsoft.Web.Http.Data.Helpers/MetadataExtensions.cs
  46. +3 −1 src/Microsoft.Web.Http.Data.Helpers/Properties/AssemblyInfo.cs
  47. +3 −1 src/Microsoft.Web.Http.Data.Helpers/UpshotExtensions.cs
  48. +3 −1 src/Microsoft.Web.Http.Data/ChangeOperation.cs
  49. +3 −1 src/Microsoft.Web.Http.Data/ChangeSet.cs
  50. +3 −1 src/Microsoft.Web.Http.Data/ChangeSetEntry.cs
  51. +3 −1 src/Microsoft.Web.Http.Data/CustomizingActionDescriptor.cs
  52. +3 −1 src/Microsoft.Web.Http.Data/DataController.cs
  53. +3 −1 src/Microsoft.Web.Http.Data/DataControllerActionInvoker.cs
  54. +3 −1 src/Microsoft.Web.Http.Data/DataControllerActionSelector.cs
  55. +3 −1 src/Microsoft.Web.Http.Data/DataControllerActionValueBinder.cs
  56. +3 −1 src/Microsoft.Web.Http.Data/DataControllerDescription.cs
  57. +3 −1 src/Microsoft.Web.Http.Data/DataControllerValidation.cs
  58. +3 −1 src/Microsoft.Web.Http.Data/DeleteAttribute.cs
  59. +3 −1 src/Microsoft.Web.Http.Data/GlobalSuppressions.cs
  60. +3 −1 src/Microsoft.Web.Http.Data/InsertAttribute.cs
  61. +3 −1 src/Microsoft.Web.Http.Data/Metadata/DataControllerTypeDescriptionProvider.cs
  62. +3 −1 src/Microsoft.Web.Http.Data/Metadata/DataControllerTypeDescriptor.cs
  63. +3 −1 src/Microsoft.Web.Http.Data/Metadata/MetadataProvider.cs
  64. +3 −1 src/Microsoft.Web.Http.Data/Metadata/MetadataProviderAttribute.cs
  65. +3 −1 src/Microsoft.Web.Http.Data/Properties/AssemblyInfo.cs
  66. +3 −1 src/Microsoft.Web.Http.Data/QueryFilterAttribute.cs
  67. +3 −1 src/Microsoft.Web.Http.Data/QueryResult.cs
  68. +3 −1 src/Microsoft.Web.Http.Data/RoundtripOriginalAttribute.cs
  69. +3 −1 src/Microsoft.Web.Http.Data/SubmitActionDescriptor.cs
  70. +3 −1 src/Microsoft.Web.Http.Data/SubmitProxyActionDescriptor.cs
  71. +3 −1 src/Microsoft.Web.Http.Data/TypeDescriptorExtensions.cs
  72. +3 −1 src/Microsoft.Web.Http.Data/TypeUtility.cs
  73. +3 −1 src/Microsoft.Web.Http.Data/UpdateActionDescriptor.cs
  74. +3 −1 src/Microsoft.Web.Http.Data/UpdateAttribute.cs
  75. +3 −1 src/Microsoft.Web.Http.Data/ValidationResultInfo.cs
  76. +3 −1 src/Microsoft.Web.Mvc/ActionLinkAreaAttribute.cs
  77. +3 −1 src/Microsoft.Web.Mvc/AjaxOnlyAttribute.cs
  78. +3 −1 src/Microsoft.Web.Mvc/AreaHelpers.cs
  79. +3 −1 src/Microsoft.Web.Mvc/AsyncManagerExtensions.cs
  80. +3 −1 src/Microsoft.Web.Mvc/ButtonBuilder.cs
  81. +3 −1 src/Microsoft.Web.Mvc/ButtonsAndLinkExtensions.cs
  82. +3 −1 src/Microsoft.Web.Mvc/CachedExpressionCompiler.cs
  83. +3 −1 src/Microsoft.Web.Mvc/ContentTypeAttribute.cs
  84. +3 −1 src/Microsoft.Web.Mvc/ControllerExtensions.cs
  85. +3 −1 src/Microsoft.Web.Mvc/Controls/ActionLink.cs
  86. +3 −1 src/Microsoft.Web.Mvc/Controls/DropDownList.cs
  87. +3 −1 src/Microsoft.Web.Mvc/Controls/EncodeType.cs
  88. +3 −1 src/Microsoft.Web.Mvc/Controls/Hidden.cs
  89. +3 −1 src/Microsoft.Web.Mvc/Controls/Label.cs
  90. +3 −1 src/Microsoft.Web.Mvc/Controls/MvcControl.cs
  91. +3 −1 src/Microsoft.Web.Mvc/Controls/MvcInputControl.cs
  92. +3 −1 src/Microsoft.Web.Mvc/Controls/Password.cs
  93. +3 −1 src/Microsoft.Web.Mvc/Controls/Repeater.cs
  94. +3 −1 src/Microsoft.Web.Mvc/Controls/RepeaterItem.cs
  95. +3 −1 src/Microsoft.Web.Mvc/Controls/RouteValues.cs
  96. +3 −1 src/Microsoft.Web.Mvc/Controls/TextBox.cs
  97. +3 −1 src/Microsoft.Web.Mvc/CookieTempDataProvider.cs
  98. +3 −1 src/Microsoft.Web.Mvc/CookieValueProviderFactory.cs
  99. +3 −1 src/Microsoft.Web.Mvc/CopyAsyncParametersAttribute.cs
  100. +3 −1 src/Microsoft.Web.Mvc/CreditCardAttribute.cs
  101. +3 −1 src/Microsoft.Web.Mvc/CssExtensions.cs
  102. +3 −1 src/Microsoft.Web.Mvc/DeserializeAttribute.cs
  103. +3 −1 src/Microsoft.Web.Mvc/DynamicReflectionObject.cs
  104. +3 −1 src/Microsoft.Web.Mvc/DynamicViewDataDictionary.cs
  105. +3 −1 src/Microsoft.Web.Mvc/DynamicViewPage.cs
  106. +3 −1 src/Microsoft.Web.Mvc/DynamicViewPage`1.cs
  107. +3 −1 src/Microsoft.Web.Mvc/ElementalValueProvider.cs
  108. +3 −1 src/Microsoft.Web.Mvc/EmailAddressAttribute.cs
  109. +3 −1 src/Microsoft.Web.Mvc/Error.cs
  110. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/BinaryExpressionFingerprint.cs
  111. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/CachedExpressionCompiler.cs
  112. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/ConditionalExpressionFingerprint.cs
  113. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/ConstantExpressionFingerprint.cs
  114. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/DefaultExpressionFingerprint.cs
  115. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/ExpressionFingerprint.cs
  116. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/ExpressionFingerprintChain.cs
  117. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/FingerprintingExpressionVisitor.cs
  118. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/HashCodeCombiner.cs
  119. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/Hoisted`2.cs
  120. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/HoistingExpressionVisitor.cs
  121. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/IndexExpressionFingerprint.cs
  122. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/LambdaExpressionFingerprint.cs
  123. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/MemberExpressionFingerprint.cs
  124. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/MethodCallExpressionFingerprint.cs
  125. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/ParameterExpressionFingerprint.cs
  126. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/TypeBinaryExpressionFingerprint.cs
  127. +3 −1 src/Microsoft.Web.Mvc/ExpressionUtil/UnaryExpressionFingerprint.cs
  128. +3 −1 src/Microsoft.Web.Mvc/FileExtensionsAttribute.cs
  129. +3 −1 src/Microsoft.Web.Mvc/FormExtensions.cs
  130. +2 −0  src/Microsoft.Web.Mvc/GlobalSuppressions.cs
  131. +3 −1 src/Microsoft.Web.Mvc/Html/HtmlHelperExtensions.cs
  132. +3 −1 src/Microsoft.Web.Mvc/HtmlButtonType.cs
  133. +3 −1 src/Microsoft.Web.Mvc/IMachineKey.cs
  134. +3 −1 src/Microsoft.Web.Mvc/ImageExtensions.cs
  135. +3 −1 src/Microsoft.Web.Mvc/Internal/ExpressionHelper.cs
  136. +3 −1 src/Microsoft.Web.Mvc/LinkBuilder.cs
  137. +3 −1 src/Microsoft.Web.Mvc/LinkExtensions.cs
  138. +3 −1 src/Microsoft.Web.Mvc/MachineKeyWrapper.cs
  139. +3 −1 src/Microsoft.Web.Mvc/MailToExtensions.cs
  140. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ArrayModelBinderProvider.cs
  141. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ArrayModelBinder`1.cs
  142. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/BinaryDataModelBinderProvider.cs
  143. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/BindNeverAttribute.cs
  144. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/BindRequiredAttribute.cs
  145. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/BindingBehavior.cs
  146. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/BindingBehaviorAttribute.cs
  147. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/CollectionModelBinderProvider.cs
  148. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/CollectionModelBinderUtil.cs
  149. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/CollectionModelBinder`1.cs
  150. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ComplexModelDto.cs
  151. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ComplexModelDtoModelBinder.cs
  152. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ComplexModelDtoModelBinderProvider.cs
  153. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ComplexModelDtoResult.cs
  154. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/DictionaryModelBinderProvider.cs
  155. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/DictionaryModelBinder`2.cs
  156. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ExtensibleModelBinderAdapter.cs
  157. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ExtensibleModelBinderAttribute.cs
  158. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ExtensibleModelBindingContext.cs
  159. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/GenericModelBinderProvider.cs
  160. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/IExtensibleModelBinder.cs
  161. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/KeyValuePairModelBinderProvider.cs
  162. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/KeyValuePairModelBinderUtil.cs
  163. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/KeyValuePairModelBinder`2.cs
  164. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ModelBinderConfig.cs
  165. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ModelBinderErrorMessageProvider.cs
  166. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ModelBinderProvider.cs
  167. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ModelBinderProviderCollection.cs
  168. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ModelBinderProviderOptionsAttribute.cs
  169. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ModelBinderProviders.cs
  170. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ModelBinderUtil.cs
  171. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ModelValidatedEventArgs.cs
  172. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ModelValidatingEventArgs.cs
  173. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/ModelValidationNode.cs
  174. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/MutableObjectModelBinder.cs
  175. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/MutableObjectModelBinderProvider.cs
  176. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/SimpleModelBinderProvider.cs
  177. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/TypeConverterModelBinder.cs
  178. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/TypeConverterModelBinderProvider.cs
  179. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/TypeMatchModelBinder.cs
  180. +3 −1 src/Microsoft.Web.Mvc/ModelBinding/TypeMatchModelBinderProvider.cs
  181. +3 −1 src/Microsoft.Web.Mvc/ModelCopier.cs
  182. +3 −1 src/Microsoft.Web.Mvc/MvcSerializer.cs
  183. +3 −1 src/Microsoft.Web.Mvc/Properties/AssemblyInfo.cs
  184. +3 −1 src/Microsoft.Web.Mvc/RadioExtensions.cs
  185. +3 −1 src/Microsoft.Web.Mvc/ReaderWriterCache`2.cs
  186. +2 −0  src/Microsoft.Web.Mvc/Resources/ActionType.cs
  187. +2 −0  src/Microsoft.Web.Mvc/Resources/AjaxHelperExtensions.cs
  188. +2 −0  src/Microsoft.Web.Mvc/Resources/AtomEntryActionResult.cs
  189. +2 −0  src/Microsoft.Web.Mvc/Resources/AtomFeedActionResult.cs
  190. +2 −0  src/Microsoft.Web.Mvc/Resources/AtomServiceDocumentActionResult.cs
  191. +2 −0  src/Microsoft.Web.Mvc/Resources/DataContractJsonActionResult.cs
  192. +2 −0  src/Microsoft.Web.Mvc/Resources/DataContractXmlActionResult.cs
  193. +2 −0  src/Microsoft.Web.Mvc/Resources/DefaultFormatHelper.cs
  194. +2 −0  src/Microsoft.Web.Mvc/Resources/DefaultFormatManager.cs
  195. +2 −0  src/Microsoft.Web.Mvc/Resources/FormatHelper.cs
  196. +2 −0  src/Microsoft.Web.Mvc/Resources/FormatManager.cs
  197. +2 −0  src/Microsoft.Web.Mvc/Resources/HtmlHelperExtensions.cs
  198. +2 −0  src/Microsoft.Web.Mvc/Resources/HttpRequestBaseExtensions.cs
  199. +2 −0  src/Microsoft.Web.Mvc/Resources/IEnumerableExtensions.cs
  200. +2 −0  src/Microsoft.Web.Mvc/Resources/IRequestFormatHandler.cs
  201. +2 −0  src/Microsoft.Web.Mvc/Resources/IResponseFormatHandler.cs
  202. +2 −0  src/Microsoft.Web.Mvc/Resources/JsonFormatHandler.cs
  203. +2 −0  src/Microsoft.Web.Mvc/Resources/MultiFormatActionResult.cs
  204. +2 −0  src/Microsoft.Web.Mvc/Resources/RequestContextExtensions.cs
  205. +2 −0  src/Microsoft.Web.Mvc/Resources/ResourceControllerFactory.cs
  206. +2 −0  src/Microsoft.Web.Mvc/Resources/ResourceErrorActionResult.cs
  207. +2 −0  src/Microsoft.Web.Mvc/Resources/ResourceModelBinder.cs
  208. +2 −0  src/Microsoft.Web.Mvc/Resources/ResourceRedirectToRouteResult.cs
  209. +2 −0  src/Microsoft.Web.Mvc/Resources/RouteCollectionExtensions.cs
  210. +2 −0  src/Microsoft.Web.Mvc/Resources/UriHelperExtensions.cs
  211. +2 −0  src/Microsoft.Web.Mvc/Resources/WebApiEnabledAttribute.cs
  212. +2 −0  src/Microsoft.Web.Mvc/Resources/XmlFormatHandler.cs
  213. +3 −1 src/Microsoft.Web.Mvc/ScriptExtensions.cs
  214. +3 −1 src/Microsoft.Web.Mvc/SerializationExtensions.cs
  215. +3 −1 src/Microsoft.Web.Mvc/SerializationMode.cs
  216. +3 −1 src/Microsoft.Web.Mvc/ServerVariablesValueProviderFactory.cs
  217. +3 −1 src/Microsoft.Web.Mvc/SessionValueProviderFactory.cs
  218. +3 −1 src/Microsoft.Web.Mvc/SkipBindingAttribute.cs
  219. +3 −1 src/Microsoft.Web.Mvc/TempDataValueProviderFactory.cs
  220. +3 −1 src/Microsoft.Web.Mvc/TypeDescriptorHelper.cs
  221. +3 −1 src/Microsoft.Web.Mvc/TypeHelpers.cs
  222. +3 −1 src/Microsoft.Web.Mvc/UrlAttribute.cs
  223. +3 −1 src/Microsoft.Web.Mvc/ValueProviderUtil.cs
  224. +3 −1 src/Microsoft.Web.Mvc/ViewExtensions.cs
  225. +3 −1 src/Microsoft.Web.WebPages.OAuth/AuthenticationClientCollection.cs
  226. +3 −1 src/Microsoft.Web.WebPages.OAuth/BuiltInOAuthClient.cs
  227. +3 −1 src/Microsoft.Web.WebPages.OAuth/BuiltInOpenIDClient.cs
  228. +3 −1 src/Microsoft.Web.WebPages.OAuth/OAuthAccount.cs
  229. +3 −1 src/Microsoft.Web.WebPages.OAuth/OAuthWebSecurity.cs
  230. +3 −1 src/Microsoft.Web.WebPages.OAuth/PreApplicationStartCode.cs
  231. +3 −1 src/Microsoft.Web.WebPages.OAuth/Properties/AssemblyInfo.cs
  232. +3 −1 src/Microsoft.Web.WebPages.OAuth/WebPagesOAuthDataProvider.cs
  233. +3 −1 src/MimeMapping.cs
  234. +3 −1 src/RS.cs
  235. +3 −1 src/SPA/Properties/AssemblyInfo.cs
  236. +2 −1  src/System.Json/Extensions/JsonValueExtensions.cs
  237. +3 −1 src/System.Json/GlobalSuppressions.cs
  238. +3 −1 src/System.Json/JXmlToJsonValueConverter.cs
  239. +3 −1 src/System.Json/JsonArray.cs
  240. +3 −1 src/System.Json/JsonObject.cs
  241. +3 −1 src/System.Json/JsonPrimitive.cs
  242. +3 −1 src/System.Json/JsonType.cs
  243. +3 −1 src/System.Json/JsonValue.cs
  244. +3 −1 src/System.Json/JsonValueChange.cs
  245. +3 −1 src/System.Json/JsonValueChangeEventArgs.cs
  246. +2 −1  src/System.Json/JsonValueDynamicMetaObject.cs
  247. +3 −1 src/System.Json/JsonValueLinqExtensions.cs
  248. +3 −1 src/System.Json/NGenWrapper.cs
  249. +3 −1 src/System.Json/Properties/AssemblyInfo.cs
  250. +3 −1 src/System.Net.Http.Formatting/CloneableExtensions.cs
  251. +3 −1 src/System.Net.Http.Formatting/Formatting/BufferedMediaTypeFormatter.cs
  252. +3 −1 src/System.Net.Http.Formatting/Formatting/ContentNegotiationResult.cs
  253. +3 −1 src/System.Net.Http.Formatting/Formatting/DefaultContentNegotiator.cs
  254. +3 −1 src/System.Net.Http.Formatting/Formatting/DelegatingEnumerable.cs
  255. +3 −1 src/System.Net.Http.Formatting/Formatting/FormDataCollection.cs
  256. +3 −1 src/System.Net.Http.Formatting/Formatting/FormUrlEncodedJson.cs
  257. +3 −1 src/System.Net.Http.Formatting/Formatting/FormUrlEncodedMediaTypeFormatter.cs
  258. +3 −1 src/System.Net.Http.Formatting/Formatting/IContentNegotiator.cs
  259. +3 −1 src/System.Net.Http.Formatting/Formatting/IFormatterLogger.cs
  260. +3 −1 src/System.Net.Http.Formatting/Formatting/IRequiredMemberSelector.cs
  261. +3 −1 src/System.Net.Http.Formatting/Formatting/JsonContractResolver.cs
  262. +3 −1 src/System.Net.Http.Formatting/Formatting/JsonMediaTypeFormatter.cs
  263. +3 −1 src/System.Net.Http.Formatting/Formatting/JsonReaderQuotaException.cs
  264. +3 −1 src/System.Net.Http.Formatting/Formatting/MediaRangeMapping.cs
  265. +3 −1 src/System.Net.Http.Formatting/Formatting/MediaTypeConstants.cs
  266. +76 −5 src/System.Net.Http.Formatting/Formatting/MediaTypeFormatter.cs
  267. +3 −1 src/System.Net.Http.Formatting/Formatting/MediaTypeFormatterCollection.cs
  268. +3 −1 src/System.Net.Http.Formatting/Formatting/MediaTypeFormatterExtensions.cs
  269. +3 −1 src/System.Net.Http.Formatting/Formatting/MediaTypeHeaderValueExtensions.cs
  270. +3 −1 src/System.Net.Http.Formatting/Formatting/MediaTypeMapping.cs
  271. +3 −1 src/System.Net.Http.Formatting/Formatting/MediaTypeMatch.cs
  272. +8 −1 src/System.Net.Http.Formatting/Formatting/MediaTypeWithQualityHeaderValueComparer.cs
  273. +3 −1 src/System.Net.Http.Formatting/Formatting/ParsedMediaTypeHeaderValue.cs
  274. +2 −0  src/System.Net.Http.Formatting/Formatting/Parsers/FormUrlEncodedParser.cs
  275. +3 −1 src/System.Net.Http.Formatting/Formatting/Parsers/HttpRequestHeaderParser.cs
  276. +2 −0  src/System.Net.Http.Formatting/Formatting/Parsers/HttpRequestLineParser.cs
  277. +3 −1 src/System.Net.Http.Formatting/Formatting/Parsers/HttpResponseHeaderParser.cs
  278. +2 −0  src/System.Net.Http.Formatting/Formatting/Parsers/HttpStatusLineParser.cs
  279. +2 −0  src/System.Net.Http.Formatting/Formatting/Parsers/InternetMessageFormatHeaderParser.cs
  280. +3 −1 src/System.Net.Http.Formatting/Formatting/Parsers/MimeMultipartBodyPartParser.cs
  281. +2 −0  src/System.Net.Http.Formatting/Formatting/Parsers/MimeMultipartParser.cs
  282. +2 −0  src/System.Net.Http.Formatting/Formatting/Parsers/ParserState.cs
  283. +3 −1 src/System.Net.Http.Formatting/Formatting/QueryStringMapping.cs
  284. +3 −1 src/System.Net.Http.Formatting/Formatting/RequestHeaderMapping.cs
  285. +3 −1 src/System.Net.Http.Formatting/Formatting/ResponseFormatterSelectionResult.cs
  286. +3 −1 src/System.Net.Http.Formatting/Formatting/ResponseMediaTypeMatch.cs
  287. +3 −1 src/System.Net.Http.Formatting/Formatting/SecureJsonTextReader.cs
  288. +3 −1 src/System.Net.Http.Formatting/Formatting/StringComparisonHelper.cs
  289. +3 −1 src/System.Net.Http.Formatting/Formatting/StringWithQualityHeaderValueComparer.cs
  290. +3 −1 src/System.Net.Http.Formatting/Formatting/XHRRequestHeaderMapping.cs
  291. +3 −1 src/System.Net.Http.Formatting/Formatting/XmlMediaTypeFormatter.cs
  292. +3 −1 src/System.Net.Http.Formatting/FormattingUtilities.cs
  293. +3 −1 src/System.Net.Http.Formatting/GlobalSuppressions.cs
  294. +3 −1 src/System.Net.Http.Formatting/Headers/CookieHeaderValue.cs
  295. +3 −1 src/System.Net.Http.Formatting/Headers/CookieState.cs
  296. +3 −1 src/System.Net.Http.Formatting/HttpClientExtensions.cs
  297. +3 −1 src/System.Net.Http.Formatting/HttpContentCollectionExtensions.cs
  298. +3 −1 src/System.Net.Http.Formatting/HttpContentExtensions.cs
  299. +3 −1 src/System.Net.Http.Formatting/HttpContentMessageExtensions.cs
  300. +3 −1 src/System.Net.Http.Formatting/HttpContentMultipartExtensions.cs
Sorry, we could not display the entire diff because too many files (2,340) changed.
View
15 License.txt
@@ -0,0 +1,15 @@
+Copyright (c) Microsoft Corporation. All rights reserved.
+Microsoft would like to thank its contributors, a list of whom
+are at http://aspnetwebstack.codeplex.com/wikipage?title=Contributors.
+
+Licensed under the Apache License, Version 2.0 (the "License"); you
+may not use this file except in compliance with the License. You may
+obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+implied. See the License for the specific language governing permissions
+and limitations under the License.
View
4 src/AptcaCommonAssemblyInfo.cs
@@ -1,4 +1,6 @@
-using System.Security;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Security;
//// REVIEW: RonCain -- This version is used by the WebStackRuntime assemblies that use types
//// from System.ComponentModelDataAnnotations which is not [SecurityTransparent]
View
2  src/Common/DictionaryExtensions.cs
@@ -1,3 +1,5 @@
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
View
2  src/Common/Error.cs
@@ -1,3 +1,5 @@
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
View
4 src/Common/HttpMethodHelper.cs
@@ -1,4 +1,6 @@
-using System.Net.Http;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Net.Http;
namespace System.Web.Http
{
View
2  src/Common/PrefixContainer.cs
@@ -1,3 +1,5 @@
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
using System.Collections.Generic;
using System.Linq;
View
172 src/Common/TaskHelpers.cs
@@ -1,7 +1,8 @@
-using System.Collections.Generic;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
-using System.Linq;
namespace System.Threading.Tasks
{
@@ -90,25 +91,82 @@ internal static Task<TResult> FromResult<TResult>(TResult result)
/// <param name="asyncIterator">collection of tasks to wait on</param>
/// <param name="cancellationToken">cancellation token</param>
/// <returns>a task that signals completed when all the incoming tasks are finished.</returns>
+ [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "The exception is propagated in a Task.")]
internal static Task Iterate(IEnumerable<Task> asyncIterator, CancellationToken cancellationToken = default(CancellationToken))
{
Contract.Assert(asyncIterator != null);
- return IterateEngine.Run(asyncIterator, cancellationToken);
+ IEnumerator<Task> enumerator = null;
+ try
+ {
+ enumerator = asyncIterator.GetEnumerator();
+ Task task = IterateImpl(enumerator, cancellationToken);
+ return (enumerator != null) ? task.Finally(enumerator.Dispose) : task;
+ }
+ catch (Exception ex)
+ {
+ return TaskHelpers.FromError(ex);
+ }
}
/// <summary>
- /// Return a task that runs all the tasks inside the iterator sequentially and collects the results.
- /// It stops as soon as one of the tasks fails or cancels, or after all the tasks have run succesfully.
+ /// Provides the implementation of the Iterate method.
+ /// Contains special logic to help speed up common cases.
/// </summary>
- /// <param name="asyncIterator">collection of tasks to wait on</param>
- /// <param name="cancellationToken">cancellation token</param>
- /// <returns>A task that, upon successful completion, returns the list of results.</returns>
- internal static Task<IEnumerable<TResult>> Iterate<TResult>(IEnumerable<Task<TResult>> asyncIterator, CancellationToken cancellationToken = default(CancellationToken))
+ [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "The exception is propagated in a Task.")]
+ internal static Task IterateImpl(IEnumerator<Task> enumerator, CancellationToken cancellationToken)
{
- Contract.Assert(asyncIterator != null);
+ try
+ {
+ while (true)
+ {
+ // short-circuit: iteration canceled
+ if (cancellationToken.IsCancellationRequested)
+ {
+ return TaskHelpers.Canceled();
+ }
+
+ // short-circuit: iteration complete
+ if (!enumerator.MoveNext())
+ {
+ return TaskHelpers.Completed();
+ }
- return IterateEngine<TResult>.Run(asyncIterator, cancellationToken);
+ // fast case: Task completed synchronously & successfully
+ Task currentTask = enumerator.Current;
+ if (currentTask.Status == TaskStatus.RanToCompletion)
+ {
+ continue;
+ }
+
+ // fast case: Task completed synchronously & unsuccessfully
+ if (currentTask.IsCanceled || currentTask.IsFaulted)
+ {
+ return currentTask;
+ }
+
+ // slow case: Task isn't yet complete
+ return IterateImplIncompleteTask(enumerator, currentTask, cancellationToken);
+ }
+ }
+ catch (Exception ex)
+ {
+ return TaskHelpers.FromError(ex);
+ }
+ }
+
+ /// <summary>
+ /// Fallback for IterateImpl when the antecedent Task isn't yet complete.
+ /// </summary>
+ internal static Task IterateImplIncompleteTask(IEnumerator<Task> enumerator, Task currentTask, CancellationToken cancellationToken)
+ {
+ // There's a race condition here, the antecedent Task could complete between
+ // the check in Iterate and the call to Then below. If this happens, we could
+ // end up growing the stack indefinitely. But the chances of (a) even having
+ // enough Tasks in the enumerator in the first place and of (b) *every* one
+ // of them hitting this race condition are so extremely remote that it's not
+ // worth worrying about.
+ return currentTask.Then(() => IterateImpl(enumerator, cancellationToken));
}
/// <summary>
@@ -325,97 +383,5 @@ private static Task<TResult> GetCancelledTask()
return tcs.Task;
}
}
-
- // These classes are the engine that implements Iterate and Iterate<T>
- private static class IterateEngine
- {
- public static Task Run(IEnumerable<Task> iterator, CancellationToken cancellationToken)
- {
- // WARNING: This code uses LINQ Select to ensure that we get deferred execution (i.e., we
- // don't start running all the tasks all at once). If you touch this code, please ensure
- // that this behavior is preserved.
- return IterateEngine<AsyncVoid>.Run(iterator.Select(t => t.ToTask<AsyncVoid>()), cancellationToken);
- }
- }
-
- private class IterateEngine<TResult>
- {
- private CancellationToken _cancellationToken;
- private TaskCompletionSource<IEnumerable<TResult>> _completionSource;
- private IEnumerator<Task<TResult>> _enumerator;
- private List<TResult> _results;
- private SynchronizationContext _syncContext;
-
- public static Task<IEnumerable<TResult>> Run(IEnumerable<Task<TResult>> iterator, CancellationToken cancellationToken)
- {
- IterateEngine<TResult> engine = new IterateEngine<TResult>
- {
- _cancellationToken = cancellationToken,
- _completionSource = new TaskCompletionSource<IEnumerable<TResult>>(),
- _enumerator = iterator.GetEnumerator(),
- _results = new List<TResult>(),
- _syncContext = SynchronizationContext.Current
- };
-
- RunNext(engine);
- return engine._completionSource.Task.Finally(engine._enumerator.Dispose);
- }
-
- private static void RunNext(IterateEngine<TResult> engine)
- {
- if (engine._syncContext != null && engine._syncContext != SynchronizationContext.Current)
- {
- engine._syncContext.Post(RunNextCallback, engine);
- }
- else
- {
- RunNextCallback(engine);
- }
- }
-
- // TODO: This class can become more efficient once we take a hard 4.5 dependency. In 4.0, ContinueWith
- // does not offer you the ability to pass a state object; once it does, we can change the implementation
- // of RunNextCallback to remove the closure around "engine".
- [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "The caught exception type is reflected into a faulted task.")]
- [SuppressMessage("Microsoft.WebAPI", "CR4001:DoNotCallProblematicMethodsOnTask", Justification = "This usage is known to be safe.")]
- private static void RunNextCallback(object state)
- {
- IterateEngine<TResult> engine = (IterateEngine<TResult>)state;
-
- try
- {
- if (engine._cancellationToken.IsCancellationRequested)
- {
- engine._completionSource.TrySetCanceled();
- }
- else if (engine._enumerator.MoveNext())
- {
- engine._enumerator.Current.ContinueWith(previous =>
- {
- switch (previous.Status)
- {
- case TaskStatus.Faulted:
- case TaskStatus.Canceled:
- engine._completionSource.TrySetFromTask(previous);
- break;
-
- default:
- engine._results.Add(previous.Result);
- RunNext(engine);
- break;
- }
- }, TaskContinuationOptions.ExecuteSynchronously);
- }
- else
- {
- engine._completionSource.TrySetResult(engine._results);
- }
- }
- catch (Exception e)
- {
- engine._completionSource.TrySetException(e);
- }
- }
- }
}
}
View
38 src/Common/TaskHelpersExtensions.cs
@@ -1,4 +1,6 @@
-using System.Diagnostics.CodeAnalysis;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.Linq.Expressions;
using System.Reflection;
@@ -46,7 +48,6 @@ internal static Task<TResult> Catch<TResult>(this Task<TResult> task, Func<Catch
{
return task;
}
-
return task.CatchImpl(() => continuation(new CatchInfo<TResult>(task)).Task, cancellationToken);
}
@@ -81,8 +82,9 @@ private static Task<TResult> CatchImpl<TResult>(this Task task, Func<Task<TResul
{
return TaskHelpers.Canceled<TResult>();
}
+
if (task.Status == TaskStatus.RanToCompletion)
- {
+ {
TaskCompletionSource<TResult> tcs = new TaskCompletionSource<TResult>();
tcs.TrySetFromTask(task);
return tcs.Task;
@@ -255,6 +257,7 @@ internal static Task Finally(this Task task, Action continuation)
}
catch (Exception ex)
{
+ MarkExceptionsObserved(task);
return TaskHelpers.FromError(ex);
}
}
@@ -280,6 +283,7 @@ internal static Task<TResult> Finally<TResult>(this Task<TResult> task, Action c
}
catch (Exception ex)
{
+ MarkExceptionsObserved(task);
return TaskHelpers.FromError<TResult>(ex);
}
}
@@ -308,14 +312,23 @@ private static Task<TResult> FinallyImplContinuation<TResult>(Task task, Action
}
catch (Exception ex)
{
+ MarkExceptionsObserved(innerTask);
tcs.SetException(ex);
}
}, state: null);
}
else
{
- continuation();
- tcs.TrySetFromTask(innerTask);
+ try
+ {
+ continuation();
+ tcs.TrySetFromTask(innerTask);
+ }
+ catch (Exception ex)
+ {
+ MarkExceptionsObserved(innerTask);
+ tcs.SetException(ex);
+ }
}
return tcs.Task;
@@ -381,6 +394,21 @@ private static Action<Task> GetRethrowWithNoStackLossDelegate()
}
/// <summary>
+ /// Marks a Task as "exception observed". The Task is required to have been completed first.
+ /// </summary>
+ /// <remarks>
+ /// Useful for 'finally' clauses, as if the 'finally' action throws we'll propagate the new
+ /// exception and lose track of the inner exception.
+ /// </remarks>
+ [SuppressMessage("Microsoft.Performance", "CA1804:RemoveUnusedLocals", MessageId = "unused", Justification = "We only call the property getter for its side effect; we don't care about the value.")]
+ private static void MarkExceptionsObserved(this Task task)
+ {
+ Contract.Assert(task.IsCompleted);
+
+ Exception unused = task.Exception;
+ }
+
+ /// <summary>
/// Calls the given continuation, after the given task has completed, if the task successfully ran
/// to completion (i.e., was not cancelled and did not fault).
/// </summary>
View
4 src/CommonAssemblyInfo.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
View
2  src/DynamicHelper.cs
@@ -1,3 +1,5 @@
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
using System;
using System.Collections.Generic;
using System.Diagnostics;
View
4 src/ExceptionHelper.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
namespace Microsoft.Internal.Web.Utils
View
2  src/GlobalSuppressions.cs
@@ -1,3 +1,5 @@
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Microsoft.Design", "CA2210:AssembliesShouldHaveValidStrongNames", Justification = "Assembly is delay-signed")]
View
2  src/HashCodeCombiner.cs
@@ -1,3 +1,5 @@
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
using System.Collections;
namespace Microsoft.Internal.Web.Utils
View
4 src/IVirtualPathUtility.cs
@@ -1,4 +1,6 @@
-namespace Microsoft.Internal.Web.Utils
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+namespace Microsoft.Internal.Web.Utils
{
internal interface IVirtualPathUtility
{
View
4 src/Microsoft.Web.Helpers/GlobalSuppressions.cs
@@ -1,4 +1,6 @@
-using System.Diagnostics.CodeAnalysis;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Diagnostics.CodeAnalysis;
[assembly: SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Scope = "member", Target = "Microsoft.Web.Helpers.Facebook.#GetInitializationScripts()", Justification = "It is analogous to the get pattern users are familiar with")]
[assembly: SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Scope = "member", Target = "Microsoft.Web.Helpers.Facebook.#GetFacebookUserProfile()", Justification = "It is analogous to the get pattern users are familiar with")]
View
4 src/Microsoft.Web.Helpers/Gravatar.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq;
View
4 src/Microsoft.Web.Helpers/GravatarRating.cs
@@ -1,4 +1,6 @@
-using System.Diagnostics.CodeAnalysis;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Diagnostics.CodeAnalysis;
namespace Microsoft.Web.Helpers
{
View
4 src/Microsoft.Web.Helpers/LinkShareSite.cs
@@ -1,4 +1,6 @@
-namespace Microsoft.Web.Helpers
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+namespace Microsoft.Web.Helpers
{
public enum LinkShareSite
{
View
4 src/Microsoft.Web.Helpers/PreApplicationStartCode.cs
@@ -1,4 +1,6 @@
-using System.ComponentModel;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.ComponentModel;
using System.Web.WebPages.Razor;
namespace Microsoft.Web.Helpers
View
2  src/Microsoft.Web.Helpers/Properties/AssemblyInfo.cs
@@ -1,3 +1,5 @@
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Web;
View
4 src/Microsoft.Web.Helpers/Themes.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
View
4 src/Microsoft.Web.Helpers/UrlBuilder.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Globalization;
using System.Text;
using System.Web;
View
4 src/Microsoft.Web.Helpers/Video.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
View
4 src/Microsoft.Web.Helpers/VirtualPathUtilityBase.cs
@@ -1,4 +1,6 @@
-namespace Microsoft.Web.Helpers
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+namespace Microsoft.Web.Helpers
{
public abstract class VirtualPathUtilityBase
{
View
4 src/Microsoft.Web.Helpers/VirtualPathUtilityWrapper.cs
@@ -1,4 +1,6 @@
-using System.Web;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Web;
namespace Microsoft.Web.Helpers
{
View
4 src/Microsoft.Web.Http.Data.EntityFramework/DbContextExtensions.cs
@@ -1,4 +1,6 @@
-using System.ComponentModel;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.ComponentModel;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/DbDataController.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/GlobalSuppressions.cs
@@ -1,4 +1,6 @@
-// This file is used by Code Analysis to maintain SuppressMessage
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
View
4 src/Microsoft.Web.Http.Data.EntityFramework/LinqToEntitiesDataController.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/AssociationInfo.cs
@@ -1,4 +1,6 @@
-namespace Microsoft.Web.Http.Data.EntityFramework.Metadata
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+namespace Microsoft.Web.Http.Data.EntityFramework.Metadata
{
/// <summary>
/// Information about an Association
View
4 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/DbMetadataProviderAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Data.Entity;
using System.Web.Http;
using Microsoft.Web.Http.Data.Metadata;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/LinqToEntitiesMetadataProvider.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/LinqToEntitiesMetadataProviderAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Data.Objects;
using System.Web.Http;
using Microsoft.Web.Http.Data.Metadata;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/LinqToEntitiesTypeDescriptionContext.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Concurrent;
using System.ComponentModel.DataAnnotations;
using System.Data.Metadata.Edm;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/LinqToEntitiesTypeDescriptor.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/MetadataPropertyDescriptorWrapper.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.ComponentModel;
namespace Microsoft.Web.Http.Data.EntityFramework.Metadata
View
4 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/MetadataWorkspaceUtilities.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Data.Mapping;
using System.Data.Metadata.Edm;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/TypeDescriptionContextBase.cs
@@ -1,4 +1,6 @@
-using System.Collections.Generic;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Collections.Generic;
using System.Globalization;
using System.Linq;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/Metadata/TypeDescriptorBase.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/ObjectContextExtensions.cs
@@ -1,4 +1,6 @@
-using System.ComponentModel;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.ComponentModel;
using System.Data;
using System.Data.Objects;
using System.Web.Http;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/ObjectContextUtilities.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Data;
View
4 src/Microsoft.Web.Http.Data.EntityFramework/Properties/AssemblyInfo.cs
@@ -1,4 +1,6 @@
-using System.Reflection;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("Microsoft.Web.Http.Data.EntityFramework")]
View
4 src/Microsoft.Web.Http.Data.Helpers/DataControllerMetadataGenerator.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
View
4 src/Microsoft.Web.Http.Data.Helpers/GlobalSuppressions.cs
@@ -1,4 +1,6 @@
-// This file is used by Code Analysis to maintain SuppressMessage
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
View
4 src/Microsoft.Web.Http.Data.Helpers/MetadataExtensions.cs
@@ -1,4 +1,6 @@
-using System.Collections.Generic;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
View
4 src/Microsoft.Web.Http.Data.Helpers/Properties/AssemblyInfo.cs
@@ -1,4 +1,6 @@
-using System.Reflection;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("Microsoft.Web.Http.Data.Helpers")]
View
4 src/Microsoft.Web.Http.Data.Helpers/UpshotExtensions.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
View
4 src/Microsoft.Web.Http.Data/ChangeOperation.cs
@@ -1,4 +1,6 @@
-namespace Microsoft.Web.Http.Data
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+namespace Microsoft.Web.Http.Data
{
/// <summary>
/// Enumeration of the types of operations a <see cref="DataController"/> can perform.
View
4 src/Microsoft.Web.Http.Data/ChangeSet.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
View
4 src/Microsoft.Web.Http.Data/ChangeSetEntry.cs
@@ -1,4 +1,6 @@
-using System.Collections.Generic;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.Serialization;
View
4 src/Microsoft.Web.Http.Data/CustomizingActionDescriptor.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
View
4 src/Microsoft.Web.Http.Data/DataController.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
View
4 src/Microsoft.Web.Http.Data/DataControllerActionInvoker.cs
@@ -1,4 +1,6 @@
-using System.Net.Http;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http.Controllers;
View
4 src/Microsoft.Web.Http.Data/DataControllerActionSelector.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Web.Http;
using System.Web.Http.Controllers;
View
4 src/Microsoft.Web.Http.Data/DataControllerActionValueBinder.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
View
4 src/Microsoft.Web.Http.Data/DataControllerDescription.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;
View
4 src/Microsoft.Web.Http.Data/DataControllerValidation.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
View
4 src/Microsoft.Web.Http.Data/DeleteAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
namespace Microsoft.Web.Http.Data
{
View
4 src/Microsoft.Web.Http.Data/GlobalSuppressions.cs
@@ -1,4 +1,6 @@
-// This file is used by Code Analysis to maintain SuppressMessage
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
View
4 src/Microsoft.Web.Http.Data/InsertAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
namespace Microsoft.Web.Http.Data
{
View
4 src/Microsoft.Web.Http.Data/Metadata/DataControllerTypeDescriptionProvider.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
View
4 src/Microsoft.Web.Http.Data/Metadata/DataControllerTypeDescriptor.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
View
4 src/Microsoft.Web.Http.Data/Metadata/MetadataProvider.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.ComponentModel;
using System.Web.Http;
View
4 src/Microsoft.Web.Http.Data/Metadata/MetadataProviderAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Web.Http;
namespace Microsoft.Web.Http.Data.Metadata
View
4 src/Microsoft.Web.Http.Data/Properties/AssemblyInfo.cs
@@ -1,4 +1,6 @@
-using System.Reflection;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("Microsoft.Web.Http.Data")]
View
4 src/Microsoft.Web.Http.Data/QueryFilterAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Linq;
using System.Linq.Expressions;
using System.Net.Http;
View
4 src/Microsoft.Web.Http.Data/QueryResult.cs
@@ -1,4 +1,6 @@
-using System.Collections;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Collections;
using System.Runtime.Serialization;
namespace Microsoft.Web.Http.Data
View
4 src/Microsoft.Web.Http.Data/RoundtripOriginalAttribute.cs
@@ -1,4 +1,6 @@
-namespace System.ComponentModel.DataAnnotations
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+namespace System.ComponentModel.DataAnnotations
{
/// <summary>
/// When applied to a member, this attribute indicates that the original value of
View
4 src/Microsoft.Web.Http.Data/SubmitActionDescriptor.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics.CodeAnalysis;
View
4 src/Microsoft.Web.Http.Data/SubmitProxyActionDescriptor.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics.CodeAnalysis;
View
4 src/Microsoft.Web.Http.Data/TypeDescriptorExtensions.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
View
4 src/Microsoft.Web.Http.Data/TypeUtility.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
View
4 src/Microsoft.Web.Http.Data/UpdateActionDescriptor.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
View
4 src/Microsoft.Web.Http.Data/UpdateAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
namespace Microsoft.Web.Http.Data
{
View
4 src/Microsoft.Web.Http.Data/ValidationResultInfo.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
View
4 src/Microsoft.Web.Mvc/ActionLinkAreaAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
namespace Microsoft.Web.Mvc
{
View
4 src/Microsoft.Web.Mvc/AjaxOnlyAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Reflection;
using System.Web.Mvc;
View
4 src/Microsoft.Web.Mvc/AreaHelpers.cs
@@ -1,4 +1,6 @@
-using System.Web.Mvc;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Web.Mvc;
using System.Web.Routing;
namespace Microsoft.Web.Mvc
View
4 src/Microsoft.Web.Mvc/AsyncManagerExtensions.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Web.Mvc.Async;
View
4 src/Microsoft.Web.Mvc/ButtonBuilder.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Web.Mvc;
View
4 src/Microsoft.Web.Mvc/ButtonsAndLinkExtensions.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Web.Mvc;
View
4 src/Microsoft.Web.Mvc/CachedExpressionCompiler.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
View
4 src/Microsoft.Web.Mvc/ContentTypeAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Web.Mvc;
using Microsoft.Web.Mvc.Properties;
View
4 src/Microsoft.Web.Mvc/ControllerExtensions.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
using System.Web.Mvc;
View
4 src/Microsoft.Web.Mvc/Controls/ActionLink.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.ComponentModel;
using System.Web.Mvc;
using System.Web.Routing;
View
4 src/Microsoft.Web.Mvc/Controls/DropDownList.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
View
4 src/Microsoft.Web.Mvc/Controls/EncodeType.cs
@@ -1,4 +1,6 @@
-namespace Microsoft.Web.Mvc.Controls
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+namespace Microsoft.Web.Mvc.Controls
{
public enum EncodeType
{
View
4 src/Microsoft.Web.Mvc/Controls/Hidden.cs
@@ -1,4 +1,6 @@
-namespace Microsoft.Web.Mvc.Controls
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+namespace Microsoft.Web.Mvc.Controls
{
public class Hidden : MvcInputControl
{
View
4 src/Microsoft.Web.Mvc/Controls/Label.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.ComponentModel;
using System.Globalization;
using System.Web;
View
4 src/Microsoft.Web.Mvc/Controls/MvcControl.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Web.Mvc;
View
4 src/Microsoft.Web.Mvc/Controls/MvcInputControl.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
View
4 src/Microsoft.Web.Mvc/Controls/Password.cs
@@ -1,4 +1,6 @@
-namespace Microsoft.Web.Mvc.Controls
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+namespace Microsoft.Web.Mvc.Controls
{
public class Password : MvcInputControl
{
View
4 src/Microsoft.Web.Mvc/Controls/Repeater.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
View
4 src/Microsoft.Web.Mvc/Controls/RepeaterItem.cs
@@ -1,4 +1,6 @@
-using System.Diagnostics.CodeAnalysis;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Diagnostics.CodeAnalysis;
using System.Web.Mvc;
using System.Web.UI;
View
4 src/Microsoft.Web.Mvc/Controls/RouteValues.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Web.UI;
View
4 src/Microsoft.Web.Mvc/Controls/TextBox.cs
@@ -1,4 +1,6 @@
-namespace Microsoft.Web.Mvc.Controls
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+namespace Microsoft.Web.Mvc.Controls
{
public class TextBox : MvcInputControl
{
View
4 src/Microsoft.Web.Mvc/CookieTempDataProvider.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
View
4 src/Microsoft.Web.Mvc/CookieValueProviderFactory.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Globalization;
using System.Web;
View
4 src/Microsoft.Web.Mvc/CopyAsyncParametersAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Web.Mvc;
using System.Web.Mvc.Async;
View
4 src/Microsoft.Web.Mvc/CreditCardAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
View
4 src/Microsoft.Web.Mvc/CssExtensions.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Web.Mvc;
using Microsoft.Web.Mvc.Properties;
View
4 src/Microsoft.Web.Mvc/DeserializeAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Web.Mvc;
View
4 src/Microsoft.Web.Mvc/DynamicReflectionObject.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Dynamic;
using System.Globalization;
using System.Linq;
View
4 src/Microsoft.Web.Mvc/DynamicViewDataDictionary.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Dynamic;
using System.Web.Mvc;
using Microsoft.Web.Mvc.Properties;
View
4 src/Microsoft.Web.Mvc/DynamicViewPage.cs
@@ -1,4 +1,6 @@
-using System.Web.Mvc;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Web.Mvc;
namespace Microsoft.Web.Mvc
{
View
4 src/Microsoft.Web.Mvc/DynamicViewPage`1.cs
@@ -1,4 +1,6 @@
-using System.Web.Mvc;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Web.Mvc;
namespace Microsoft.Web.Mvc
{
View
4 src/Microsoft.Web.Mvc/ElementalValueProvider.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Globalization;
using System.Web.Mvc;
View
4 src/Microsoft.Web.Mvc/EmailAddressAttribute.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text.RegularExpressions;
View
4 src/Microsoft.Web.Mvc/Error.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using Microsoft.Web.Mvc.Properties;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/BinaryExpressionFingerprint.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
using System.Reflection;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/CachedExpressionCompiler.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq.Expressions;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/ConditionalExpressionFingerprint.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/ConstantExpressionFingerprint.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/DefaultExpressionFingerprint.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/ExpressionFingerprint.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Linq.Expressions;
namespace Microsoft.Web.Mvc.ExpressionUtil
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/ExpressionFingerprintChain.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
namespace Microsoft.Web.Mvc.ExpressionUtil
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/FingerprintingExpressionVisitor.cs
@@ -1,4 +1,6 @@
-using System.Collections.Generic;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Collections.Generic;
using System.Linq.Expressions;
namespace Microsoft.Web.Mvc.ExpressionUtil
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/HashCodeCombiner.cs
@@ -1,4 +1,6 @@
-using System.Collections;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Collections;
namespace Microsoft.Web.Mvc.ExpressionUtil
{
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/Hoisted`2.cs
@@ -1,4 +1,6 @@
-using System.Collections.Generic;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System.Collections.Generic;
namespace Microsoft.Web.Mvc.ExpressionUtil
{
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/HoistingExpressionVisitor.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Collections.Generic;
using System.Linq.Expressions;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/IndexExpressionFingerprint.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
using System.Reflection;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/LambdaExpressionFingerprint.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/MemberExpressionFingerprint.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
using System.Reflection;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/MethodCallExpressionFingerprint.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
using System.Reflection;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/ParameterExpressionFingerprint.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/TypeBinaryExpressionFingerprint.cs
@@ -1,4 +1,6 @@
-using System;
+// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
+
+using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
View
4 src/Microsoft.Web.Mvc/ExpressionUtil/UnaryExpressionFingerprint.cs