This commit is contained in:
Ajay Bhargav Baaskaran 2016-02-17 12:10:56 -08:00
Родитель a8dbf6a255
Коммит c2f4bd0be5
3 изменённых файлов: 6 добавлений и 14 удалений

Просмотреть файл

@ -1,12 +1,7 @@
{ {
"adx": { // Packages written by the ADX team and that ship on NuGet.org "adx": { // Packages written by the ADX team and that ship on NuGet.org
"rules": [ "rules": [
"AssemblyHasDocumentFileRule", "AdxVerificationCompositeRule"
"AssemblyHasVersionAttributesRule",
"AssemblyHasServicingAttributeRule",
"AssemblyHasNeutralResourcesLanguageAttributeRule",
"SatellitePackageRule",
"StrictSemanticVersionValidationRule"
], ],
"packages": { "packages": {
"Microsoft.AspNetCore.Antiforgery": { } "Microsoft.AspNetCore.Antiforgery": { }
@ -14,12 +9,7 @@
}, },
"Default": { // Rules to run for packages not listed in any other set. "Default": { // Rules to run for packages not listed in any other set.
"rules": [ "rules": [
"AssemblyHasDocumentFileRule", "DefaultCompositeRule"
"AssemblyHasVersionAttributesRule",
"AssemblyHasServicingAttributeRule",
"AssemblyHasNeutralResourcesLanguageAttributeRule",
"SatellitePackageRule",
"StrictSemanticVersionValidationRule"
] ]
} }
} }

Просмотреть файл

@ -41,7 +41,7 @@ namespace Microsoft.AspNetCore.Antiforgery
/// </summary> /// </summary>
/// <param name="httpContext">The <see cref="HttpContext"/> associated with the current request.</param> /// <param name="httpContext">The <see cref="HttpContext"/> associated with the current request.</param>
/// <returns> /// <returns>
/// A <see cref="Task{bool}"/> that, when completed, returns <c>true</c> if the is requst uses a safe HTTP /// A <see cref="Task{Boolean}"/> that, when completed, returns <c>true</c> if the is requst uses a safe HTTP
/// method or contains a value antiforgery token, otherwise returns <c>false</c>. /// method or contains a value antiforgery token, otherwise returns <c>false</c>.
/// </returns> /// </returns>
Task<bool> IsRequestValidAsync(HttpContext httpContext); Task<bool> IsRequestValidAsync(HttpContext httpContext);

Просмотреть файл

@ -3,7 +3,9 @@
"version": "1.0.0-*", "version": "1.0.0-*",
"compilationOptions": { "compilationOptions": {
"warningsAsErrors": true, "warningsAsErrors": true,
"keyFile": "../../tools/Key.snk" "keyFile": "../../tools/Key.snk",
"nowarn": [ "CS1591" ],
"xmlDoc": true
}, },
"repository": { "repository": {
"type": "git", "type": "git",