Skip to content

Commit b3599b6

Browse files
crgrievejkotalik
authored andcommitted
Making docs more inclusive (#14607)
1 parent 387bd1a commit b3599b6

File tree

12 files changed

+34
-34
lines changed

12 files changed

+34
-34
lines changed

src/Antiforgery/src/IAntiforgeryAdditionalDataProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Antiforgery
88
/// <summary>
99
/// Allows providing or validating additional custom data for antiforgery tokens.
1010
/// For example, the developer could use this to supply a nonce when the token is
11-
/// generated, then he could validate the nonce when the token is validated.
11+
/// generated, then validate it when the token is validated.
1212
/// </summary>
1313
/// <remarks>
1414
/// The antiforgery system already embeds the client's username within the

src/DataProtection/DataProtection/src/AuthenticatedEncryption/IOptimizedAuthenticatedEncryptor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ internal interface IOptimizedAuthenticatedEncryptor : IAuthenticatedEncryptor
3131
/// This method allows for a slight performance improvement over IAuthenticatedEncryptor.Encrypt
3232
/// in the case where the caller needs to prepend or append some data to the resulting ciphertext.
3333
/// For instance, if the caller needs to append a 32-bit header to the resulting ciphertext, then
34-
/// he can specify 4 for 'preBufferSize' and overwrite the first 32 bits of the buffer returned
34+
/// specify 4 for 'preBufferSize' and overwrite the first 32 bits of the buffer returned
3535
/// by this function. This saves the caller from having to allocate a new buffer to hold the final
3636
/// transformed result.
37-
///
37+
///
3838
/// All cryptography-related exceptions should be homogenized to CryptographicException.
3939
/// </remarks>
4040
byte[] Encrypt(ArraySegment<byte> plaintext, ArraySegment<byte> additionalAuthenticatedData, uint preBufferSize, uint postBufferSize);

src/DataProtection/DataProtection/src/IDataProtectionBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ namespace Microsoft.AspNetCore.DataProtection
1515
/// <remarks>
1616
/// <para>
1717
/// If the developer changes the at-rest key protection mechanism, it is intended that
18-
/// he also change the key storage location, and vice versa. For instance, a call to
18+
/// they also change the key storage location, and vice versa. For instance, a call to
1919
/// <see cref="DataProtectionBuilderExtensions.ProtectKeysWithCertificate(IDataProtectionBuilder,string)" /> should generally be accompanied by
2020
/// a call to <see cref="DataProtectionBuilderExtensions.PersistKeysToFileSystem(IDataProtectionBuilder,DirectoryInfo)"/>, or exceptions may
2121
/// occur at runtime due to the data protection system not knowing where to persist keys.
2222
/// </para>
2323
/// <para>
2424
/// Similarly, when a developer modifies the default protected payload cryptographic
25-
/// algorithms, it is intended that he also select an explitiy key storage location.
25+
/// algorithms, they should also set an explicit key storage location.
2626
/// A call to <see cref="DataProtectionBuilderExtensions.UseCryptographicAlgorithms(IDataProtectionBuilder,AuthenticatedEncryptorConfiguration)"/>
2727
/// should therefore generally be paired with a call to <see cref="DataProtectionBuilderExtensions.PersistKeysToFileSystem(IDataProtectionBuilder,DirectoryInfo)"/>,
2828
/// for example.
@@ -40,4 +40,4 @@ public interface IDataProtectionBuilder
4040
/// </summary>
4141
IServiceCollection Services { get; }
4242
}
43-
}
43+
}

src/DataProtection/DataProtection/src/KeyManagement/KeyRingBasedDataProtector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private byte[] UnprotectCore(byte[] protectedData, bool allowOperationsOnRevoked
253253
}
254254
}
255255

256-
// Do we need to notify the caller that he should reprotect the data?
256+
// Do we need to notify the caller that they should reprotect the data?
257257
status = UnprotectStatus.Ok;
258258
if (keyIdFromPayload != currentKeyRing.DefaultKeyId)
259259
{

src/DataProtection/DataProtection/src/KeyManagement/KeyRingProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ internal IKeyRing GetCurrentKeyRingCore(DateTime utcNow, bool forceRefresh = fal
226226
Volatile.Write(ref _cacheableKeyRing, existingCacheableKeyRing.WithTemporaryExtendedLifetime(utcNow));
227227
}
228228

229-
// The immediate caller should fail so that he can report the error up his chain. This makes it more likely
229+
// The immediate caller should fail so that they can report the error up the chain. This makes it more likely
230230
// that an administrator can see the error and react to it as appropriate. The caller can retry the operation
231-
// and will probably have success as long as he falls within the temporary extension mentioned above.
231+
// and will probably have success as long as they fall within the temporary extension mentioned above.
232232
throw;
233233
}
234234

src/Features/JsonPatch/src/Adapters/IObjectAdapter.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ namespace Microsoft.AspNetCore.JsonPatch.Adapters
77
{
88
/// <summary>
99
/// Defines the operations that can be performed on a JSON patch document.
10-
/// </summary>
10+
/// </summary>
1111
public interface IObjectAdapter
1212
{
1313
/// <summary>
1414
/// Using the "add" operation a new value is inserted into the root of the target
1515
/// document, into the target array at the specified valid index, or to a target object at
1616
/// the specified location.
17-
///
18-
/// When adding to arrays, the specified index MUST NOT be greater than the number of elements in the array.
17+
///
18+
/// When adding to arrays, the specified index MUST NOT be greater than the number of elements in the array.
1919
/// To append the value to the array, the index of "-" character is used (see [RFC6901]).
20-
///
21-
/// When adding to an object, if an object member does not already exist, a new member is added to the object at the
20+
///
21+
/// When adding to an object, if an object member does not already exist, a new member is added to the object at the
2222
/// specified location or if an object member does exist, that member's value is replaced.
2323
///
2424
/// The operation object MUST contain a "value" member whose content
@@ -46,7 +46,7 @@ public interface IObjectAdapter
4646
/// For example:
4747
///
4848
/// { "op": "copy", "from": "/a/b/c", "path": "/a/b/e" }
49-
///
49+
///
5050
/// See RFC 6902 https://tools.ietf.org/html/rfc6902#page-7
5151
/// </summary>
5252
/// <param name="operation">The copy operation.</param>
@@ -67,7 +67,7 @@ public interface IObjectAdapter
6767
/// { "op": "move", "from": "/a/b/c", "path": "/a/b/d" }
6868
///
6969
/// A location cannot be moved into one of its children.
70-
///
70+
///
7171
/// See RFC 6902 https://tools.ietf.org/html/rfc6902#page-6
7272
/// </summary>
7373
/// <param name="operation">The move operation.</param>
@@ -85,15 +85,15 @@ public interface IObjectAdapter
8585
///
8686
/// If removing an element from an array, any elements above the
8787
/// specified index are shifted one position to the left.
88-
///
88+
///
8989
/// See RFC 6902 https://tools.ietf.org/html/rfc6902#page-6
9090
/// </summary>
9191
/// <param name="operation">The remove operation.</param>
9292
/// <param name="objectToApplyTo">Object to apply the operation to.</param>
9393
void Remove(Operation operation, object objectToApplyTo);
9494

9595
/// <summary>
96-
/// Using the "replace" operation he value at the target location is replaced
96+
/// Using the "replace" operation the value at the target location is replaced
9797
/// with a new value. The operation object MUST contain a "value" member
9898
/// which specifies the replacement value.
9999
///
@@ -102,7 +102,7 @@ public interface IObjectAdapter
102102
/// For example:
103103
///
104104
/// { "op": "replace", "path": "/a/b/c", "value": 42 }
105-
///
105+
///
106106
/// See RFC 6902 https://tools.ietf.org/html/rfc6902#page-6
107107
/// </summary>
108108
/// <param name="operation">The replace operation.</param>

src/Http/Headers/src/EntityTagHeaderValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public EntityTagHeaderValue(StringSegment tag, bool isWeak)
5353
(length != tag.Length))
5454
{
5555
// Note that we don't allow 'W/' prefixes for weak ETags in the 'tag' parameter. If the user wants to
56-
// add a weak ETag, he can set 'isWeak' to true.
56+
// add a weak ETag, they can set 'isWeak' to true.
5757
throw new FormatException("Invalid ETag name");
5858
}
5959

src/Http/Headers/src/HeaderUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal static void SetQuality(IList<NameValueHeaderValue> parameters, double?
2626
{
2727
// Note that even if we check the value here, we can't prevent a user from adding an invalid quality
2828
// value using Parameters.Add(). Even if we would prevent the user from adding an invalid value
29-
// using Parameters.Add() he could always add invalid values using HttpHeaders.AddWithoutValidation().
29+
// using Parameters.Add() they could always add invalid values using HttpHeaders.AddWithoutValidation().
3030
// So this check is really for convenience to show users that they're trying to add an invalid
3131
// value.
3232
if ((value < 0) || (value > 1))

src/Http/Routing/src/Constraints/HttpMethodRouteConstraint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public virtual bool Match(
7373
// the HTTP GET-specific route will be used for URI generation, which might have undesired behavior.
7474
//
7575
// To prevent this, a user might call GetVirtualPath(..., { httpMethod = "POST" }) to
76-
// signal that he is generating a URI that will be used for an HTTP POST, so he wants the URI
76+
// signal that they are generating a URI that will be used for an HTTP POST, so they want the URI
7777
// generation to be performed by the (b) route instead of the (a) route, consistent with what would
7878
// happen on incoming requests.
7979
if (!values.TryGetValue(routeKey, out var obj))

src/Identity/Extensions.Core/src/UserManager.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public UserManager(IUserStore<TUser> store,
113113
RegisterTokenProvider(providerName, provider);
114114
}
115115
}
116-
}
116+
}
117117

118118
if (Options.Stores.ProtectPersonalData)
119119
{
@@ -161,7 +161,7 @@ public UserManager(IUserStore<TUser> store,
161161
/// The <see cref="ILookupNormalizer"/> used to normalize things like user and role names.
162162
/// </summary>
163163
public ILookupNormalizer KeyNormalizer { get; set; }
164-
164+
165165
/// <summary>
166166
/// The <see cref="IdentityErrorDescriber"/> used to generate error messages.
167167
/// </summary>
@@ -617,7 +617,7 @@ public virtual string NormalizeName(string name)
617617
/// <returns>A normalized value representing the specified <paramref name="email"/>.</returns>
618618
public virtual string NormalizeEmail(string email)
619619
=> (KeyNormalizer == null) ? email : KeyNormalizer.NormalizeEmail(email);
620-
620+
621621
private string ProtectPersonalData(string data)
622622
{
623623
if (Options.Stores.ProtectPersonalData)
@@ -861,7 +861,7 @@ public virtual async Task<string> GetSecurityStampAsync(TUser user)
861861
throw new ArgumentNullException(nameof(user));
862862
}
863863
var stamp = await securityStore.GetSecurityStampAsync(user, CancellationToken);
864-
if (stamp == null)
864+
if (stamp == null)
865865
{
866866
Logger.LogWarning(15, "GetSecurityStampAsync for user {userId} failed because stamp was null.", await GetUserIdAsync(user));
867867
throw new InvalidOperationException(Resources.NullSecurityStamp);
@@ -1898,7 +1898,7 @@ public virtual async Task<IdentityResult> SetTwoFactorEnabledAsync(TUser user, b
18981898
}
18991899

19001900
/// <summary>
1901-
/// Returns a flag indicating whether the specified <paramref name="user"/> his locked out,
1901+
/// Returns a flag indicating whether the specified <paramref name="user"/> is locked out,
19021902
/// as an asynchronous operation.
19031903
/// </summary>
19041904
/// <param name="user">The user whose locked out status should be retrieved.</param>

src/Mvc/Mvc.Core/src/ApplicationModels/ApplicationModelFactory.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ public static List<TResult> Flatten<TResult>(
131131
}
132132

133133
private static void ReplaceAttributeRouteTokens(
134-
ControllerModel controller,
135-
ActionModel action,
136-
SelectorModel selector,
134+
ControllerModel controller,
135+
ActionModel action,
136+
SelectorModel selector,
137137
List<string> errors)
138138
{
139139
if (selector.AttributeRouteModel == null)
@@ -148,7 +148,7 @@ private static void ReplaceAttributeRouteTokens(
148148
{ "action", action.ActionName },
149149
{ "controller", controller.ControllerName },
150150
};
151-
151+
152152
foreach (var kvp in action.RouteValues)
153153
{
154154
routeValues.TryAdd(kvp.Key, kvp.Value);
@@ -186,7 +186,7 @@ private static void ReplaceAttributeRouteTokens(
186186
}
187187

188188
private static void AddActionToMethodInfoMap(
189-
Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>> actionsByMethod,
189+
Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>> actionsByMethod,
190190
ActionModel action,
191191
SelectorModel selector)
192192
{
@@ -242,7 +242,7 @@ private static List<string> ValidateNamedAttributeRoutedActions(
242242
// we compare it against the rest of the templates that have that same name
243243
// associated.
244244
// The moment we find one that is different we report the whole group to the
245-
// user in the error message so that he can see the different actions and the
245+
// user in the error message so that they can see the different actions and the
246246
// different templates for a given named attribute route.
247247
var template = actions[0].selector.AttributeRouteModel.Template;
248248

src/ProjectTemplates/Web.Spa.ProjectTemplates/content/React-CSharp/ClientApp/src/components/api-authorization/Login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class Login extends Component {
120120
redirectToApiAuthorizationPath(apiAuthorizationPath) {
121121
const redirectUrl = `${window.location.origin}${apiAuthorizationPath}`;
122122
// It's important that we do a replace here so that when the user hits the back arrow on the
123-
// browser he gets sent back to where it was on the app instead of to an endpoint on this
123+
// browser they get sent back to where it was on the app instead of to an endpoint on this
124124
// component.
125125
window.location.replace(redirectUrl);
126126
}

0 commit comments

Comments
 (0)