Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit b77e9d2

Browse files
author
Praburaj
committed
Using [NotNull] attribute from the Common repo package
1 parent ca07b6e commit b77e9d2

File tree

62 files changed

+63
-100
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+63
-100
lines changed

src/Microsoft.AspNet.FeatureModel/FeatureCollection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Collections.Generic;
77
using System.Reflection;
88
using System.Threading;
9+
using Microsoft.Framework.Internal;
910

1011
namespace Microsoft.AspNet.FeatureModel
1112
{

src/Microsoft.AspNet.FeatureModel/NotNullAttribute.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Microsoft.AspNet.FeatureModel/project.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"version": "1.0.0-*",
3-
"description": "ASP.NET 5 HTTP feature infrastructure.",
4-
"dependencies": {
5-
},
2+
"version": "1.0.0-*",
3+
"description": "ASP.NET 5 HTTP feature infrastructure.",
4+
"dependencies": {
5+
"Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" }
6+
},
67
"frameworks": {
78
"dnx451": {},
89
"dnxcore50": {

src/Microsoft.AspNet.Http.Core/Authentication/AuthenticateContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Collections.Generic;
55
using System.Security.Claims;
66
using Microsoft.AspNet.Http.Authentication;
7+
using Microsoft.Framework.Internal;
78

89
namespace Microsoft.AspNet.Http.Core.Authentication
910
{

src/Microsoft.AspNet.Http.Core/Authentication/ChallengeContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.Collections.Generic;
66
using Microsoft.AspNet.Http.Authentication;
7+
using Microsoft.Framework.Internal;
78

89
namespace Microsoft.AspNet.Http.Core.Authentication
910
{

src/Microsoft.AspNet.Http.Core/Authentication/SignInContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Collections.Generic;
66
using System.Security.Claims;
77
using Microsoft.AspNet.Http.Authentication;
8+
using Microsoft.Framework.Internal;
89

910
namespace Microsoft.AspNet.Http.Core.Authentication
1011
{

src/Microsoft.AspNet.Http.Core/Authentication/SignOutContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.Collections.Generic;
66
using Microsoft.AspNet.Http.Authentication;
7+
using Microsoft.Framework.Internal;
78

89
namespace Microsoft.AspNet.Http.Core.Authentication
910
{

src/Microsoft.AspNet.Http.Core/BufferingHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.IO;
66
using Microsoft.AspNet.WebUtilities;
7+
using Microsoft.Framework.Internal;
78

89
namespace Microsoft.AspNet.Http.Core
910
{

src/Microsoft.AspNet.Http.Core/Collections/FormCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System.Collections.Generic;
5-
using Microsoft.AspNet.Http;
5+
using Microsoft.Framework.Internal;
66

77
namespace Microsoft.AspNet.Http.Core.Collections
88
{

src/Microsoft.AspNet.Http.Core/Collections/HeaderDictionary.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
using System.Collections;
66
using System.Collections.Generic;
77
using System.Linq;
8-
using Microsoft.AspNet.Http.Infrastructure;
9-
using Microsoft.AspNet.Http;
108
using Microsoft.AspNet.Http.Core.Infrastructure;
9+
using Microsoft.Framework.Internal;
1110

1211
namespace Microsoft.AspNet.Http.Core.Collections
1312
{

src/Microsoft.AspNet.Http.Core/Collections/ReadableStringCollection.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
using System;
54
using System.Collections;
65
using System.Collections.Generic;
7-
using Microsoft.AspNet.Http;
6+
using Microsoft.Framework.Internal;
87

98
namespace Microsoft.AspNet.Http.Core.Collections
109
{

src/Microsoft.AspNet.Http.Core/Collections/ResponseCookies.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Globalization;
77
using System.Linq;
88
using Microsoft.AspNet.Http.Infrastructure;
9+
using Microsoft.Framework.Internal;
910
using Microsoft.Framework.WebEncoders;
1011

1112
namespace Microsoft.AspNet.Http.Core.Collections

src/Microsoft.AspNet.Http.Core/DefaultHttpContext.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
using System.Threading;
1010
using System.Threading.Tasks;
1111
using Microsoft.AspNet.FeatureModel;
12+
using Microsoft.AspNet.Http.Authentication;
13+
using Microsoft.AspNet.Http.Core.Authentication;
1214
using Microsoft.AspNet.Http.Core.Collections;
1315
using Microsoft.AspNet.Http.Core.Infrastructure;
14-
using Microsoft.AspNet.Http.Core.Authentication;
1516
using Microsoft.AspNet.Http.Infrastructure;
16-
using Microsoft.AspNet.Http;
17-
using Microsoft.AspNet.Http.Authentication;
17+
using Microsoft.Framework.Internal;
1818

1919
namespace Microsoft.AspNet.Http.Core
2020
{

src/Microsoft.AspNet.Http.Core/DefaultHttpResponse.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using Microsoft.AspNet.Http.Core.Collections;
1313
using Microsoft.AspNet.Http.Core.Infrastructure;
1414
using Microsoft.AspNet.Http.Infrastructure;
15+
using Microsoft.Framework.Internal;
1516

1617
namespace Microsoft.AspNet.Http.Core
1718
{

src/Microsoft.AspNet.Http.Core/FormFeature.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
using System;
55
using System.Collections.Generic;
66
using System.IO;
7-
using System.Linq;
87
using System.Text;
98
using System.Threading;
109
using System.Threading.Tasks;
11-
using Microsoft.AspNet.Http;
1210
using Microsoft.AspNet.Http.Core.Collections;
1311
using Microsoft.AspNet.WebUtilities;
12+
using Microsoft.Framework.Internal;
1413
using Microsoft.Net.Http.Headers;
1514

1615
namespace Microsoft.AspNet.Http.Core

src/Microsoft.AspNet.Http.Core/Infrastructure/ParsingHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
using System.Collections.Generic;
77
using System.Globalization;
88
using System.Linq;
9-
using Microsoft.AspNet.Http;
109
using Microsoft.AspNet.Http.Infrastructure;
10+
using Microsoft.Framework.Internal;
1111

1212
namespace Microsoft.AspNet.Http.Core.Infrastructure
1313
{

src/Microsoft.AspNet.Http.Core/NotNullAttribute.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Microsoft.AspNet.Http.Core/QueryFeature.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using Microsoft.AspNet.Http.Core.Collections;
77
using Microsoft.AspNet.Http.Core.Infrastructure;
88
using Microsoft.AspNet.WebUtilities;
9+
using Microsoft.Framework.Internal;
910

1011
namespace Microsoft.AspNet.Http.Core
1112
{

src/Microsoft.AspNet.Http.Core/ReferenceReadStream.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.IO;
66
using System.Threading;
77
using System.Threading.Tasks;
8+
using Microsoft.Framework.Internal;
89

910
namespace Microsoft.AspNet.Http.Core
1011
{

src/Microsoft.AspNet.Http.Core/RequestCookiesFeature.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Microsoft.AspNet.Http.Core.Collections;
88
using Microsoft.AspNet.Http.Core.Infrastructure;
99
using Microsoft.AspNet.Http.Infrastructure;
10+
using Microsoft.Framework.Internal;
1011

1112
namespace Microsoft.AspNet.Http.Core
1213
{

src/Microsoft.AspNet.Http.Core/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"Microsoft.AspNet.Http": "1.0.0-*",
77
"Microsoft.AspNet.Http.Interfaces": "1.0.0-*",
88
"Microsoft.AspNet.WebUtilities": "1.0.0-*",
9+
"Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" },
910
"Microsoft.Framework.WebEncoders.Core": "1.0.0-*",
1011
"Microsoft.Net.Http.Headers": "1.0.0-*"
1112
},

src/Microsoft.AspNet.Http.Extensions/FormFileExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.IO;
55
using System.Threading;
66
using System.Threading.Tasks;
7+
using Microsoft.Framework.Internal;
78

89
namespace Microsoft.AspNet.Http
910
{

src/Microsoft.AspNet.Http.Extensions/HeaderDictionaryTypeExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Linq;
77
using System.Reflection;
88
using Microsoft.AspNet.Http.Headers;
9+
using Microsoft.Framework.Internal;
910
using Microsoft.Net.Http.Headers;
1011

1112
namespace Microsoft.AspNet.Http

src/Microsoft.AspNet.Http.Extensions/HttpResponseSendingExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Text;
66
using System.Threading;
77
using System.Threading.Tasks;
8+
using Microsoft.Framework.Internal;
89

910
namespace Microsoft.AspNet.Http
1011
{

src/Microsoft.AspNet.Http.Extensions/NotNullAttribute.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Microsoft.AspNet.Http.Extensions/RequestHeaders.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using System;
55
using System.Collections.Generic;
6+
using Microsoft.Framework.Internal;
67
using Microsoft.Net.Http.Headers;
78

89
namespace Microsoft.AspNet.Http.Headers

src/Microsoft.AspNet.Http.Extensions/ResponseHeaders.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.Collections.Generic;
66
using Microsoft.AspNet.Http.Extensions;
7+
using Microsoft.Framework.Internal;
78
using Microsoft.Net.Http.Headers;
89

910
namespace Microsoft.AspNet.Http.Headers

src/Microsoft.AspNet.Http.Extensions/SendFileResponseExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Threading;
66
using System.Threading.Tasks;
77
using Microsoft.AspNet.Http.Extensions;
8+
using Microsoft.Framework.Internal;
89

910
namespace Microsoft.AspNet.Http
1011
{

src/Microsoft.AspNet.Http.Extensions/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"Microsoft.AspNet.Http": "1.0.0-*",
66
"Microsoft.AspNet.Http.Interfaces": "1.0.0-*",
77
"Microsoft.Framework.DependencyInjection": "1.0.0-*",
8+
"Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" },
89
"Microsoft.Framework.WebEncoders.Core": "1.0.0-*",
910
"Microsoft.Net.Http.Headers": "1.0.0-*"
1011
},

src/Microsoft.AspNet.Http/Authentication/AuthenticateResult.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System.Security.Claims;
5+
using Microsoft.Framework.Internal;
56

67
namespace Microsoft.AspNet.Http.Authentication
78
{

src/Microsoft.AspNet.Http/Authentication/AuthenticationDescription.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.Collections.Generic;
66
using System.Globalization;
7+
using Microsoft.Framework.Internal;
78

89
namespace Microsoft.AspNet.Http.Authentication
910
{

src/Microsoft.AspNet.Http/Extensions/MapExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using Microsoft.AspNet.Http;
66
using Microsoft.AspNet.Builder.Extensions;
7+
using Microsoft.Framework.Internal;
78

89
namespace Microsoft.AspNet.Builder
910
{

src/Microsoft.AspNet.Http/Extensions/MapMiddleware.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using System.Threading.Tasks;
55
using Microsoft.AspNet.Http;
6+
using Microsoft.Framework.Internal;
67

78
namespace Microsoft.AspNet.Builder.Extensions
89
{

src/Microsoft.AspNet.Http/Extensions/MapWhenExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
namespace Microsoft.AspNet.Builder
1010
{
11+
using Microsoft.Framework.Internal;
1112
using Predicate = Func<HttpContext, bool>;
1213
using PredicateAsync = Func<HttpContext, Task<bool>>;
1314

src/Microsoft.AspNet.Http/Extensions/MapWhenMiddleware.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using System.Threading.Tasks;
55
using Microsoft.AspNet.Http;
6+
using Microsoft.Framework.Internal;
67

78
namespace Microsoft.AspNet.Builder.Extensions
89
{

src/Microsoft.AspNet.Http/Extensions/RunExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using Microsoft.AspNet.Http;
66
using System.Threading.Tasks;
7+
using Microsoft.Framework.Internal;
78

89
namespace Microsoft.AspNet.Builder
910
{

src/Microsoft.AspNet.Http/FragmentString.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
5+
using Microsoft.Framework.Internal;
56

67
namespace Microsoft.AspNet.Http
78
{

src/Microsoft.AspNet.Http/HostString.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.Diagnostics.CodeAnalysis;
66
using System.Globalization;
7+
using Microsoft.Framework.Internal;
78

89
namespace Microsoft.AspNet.Http
910
{

src/Microsoft.AspNet.Http/HttpResponseWritingExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Text;
66
using System.Threading;
77
using System.Threading.Tasks;
8+
using Microsoft.Framework.Internal;
89

910
namespace Microsoft.AspNet.Http
1011
{

src/Microsoft.AspNet.Http/NotNullAttribute.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Microsoft.AspNet.Http/PathString.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using System;
55
using System.Linq;
6+
using Microsoft.Framework.Internal;
67
using Microsoft.Framework.WebEncoders;
78

89
namespace Microsoft.AspNet.Http

src/Microsoft.AspNet.Http/QueryString.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
5+
using Microsoft.Framework.Internal;
56
using Microsoft.Framework.WebEncoders;
67

78
namespace Microsoft.AspNet.Http

src/Microsoft.AspNet.Http/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"version": "1.0.0-*",
33
"description": "ASP.NET 5 HTTP object model. HttpContext and family.",
44
"dependencies": {
5+
"Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" },
56
"Microsoft.Framework.WebEncoders.Core": "1.0.0-*"
67
},
78
"frameworks": {

0 commit comments

Comments
 (0)