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

Commit 78a0a68

Browse files
bchavezmikaelm12
authored andcommitted
Typos/spelling errors in XML doc comments and source. #Hacktoberfest (#3039)
1 parent 713e224 commit 78a0a68

File tree

12 files changed

+15
-15
lines changed

12 files changed

+15
-15
lines changed

benchmarkapps/Crankier/Worker.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public async Task ConnectAsync(string targetAddress, HttpTransportType transport
6868
await client.CreateAndStartConnectionAsync(targetAddress, transportType);
6969
}
7070

71-
Log("Connections connected succesfully");
71+
Log("Connections connected successfully");
7272
}
7373

7474
public Task StartTestAsync(TimeSpan sendInterval, int sendBytes)
@@ -80,7 +80,7 @@ public Task StartTestAsync(TimeSpan sendInterval, int sendBytes)
8080
client.StartTest(sendBytes, sendInterval);
8181
}
8282

83-
Log("Test started succesfully");
83+
Log("Test started successfully");
8484
return Task.CompletedTask;
8585
}
8686

@@ -98,7 +98,7 @@ public Task StopAsync()
9898
}
9999

100100
_sendStatusCts.Cancel();
101-
Log("Connections stopped succesfully");
101+
Log("Connections stopped successfully");
102102
_targetConnectionCount = 0;
103103

104104
return Task.CompletedTask;

src/Common/BinaryMessageParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static bool TryParseMessage(ref ReadOnlySequence<byte> buffer, out ReadOn
2727
// remaining bits (%x0000000) are the lowest bits of the value. The most significant bit of the second
2828
// byte is 0 meaning this is last byte of the VarInt. The actual value bits (%x0101001) need to be
2929
// prepended to the bits we already read so the values is %01010010000000 i.e. 0x1480 (5248)
30-
// We support paylads up to 2GB so the biggest number we support is 7fffffff which when encoded as
30+
// We support payloads up to 2GB so the biggest number we support is 7fffffff which when encoded as
3131
// VarInt is 0xFF 0xFF 0xFF 0xFF 0x07 - hence the maximum length prefix is 5 bytes.
3232

3333
var length = 0U;

src/Common/JsonUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public static bool CheckRead(JsonTextReader reader)
155155

156156
public static bool ReadForType(JsonTextReader reader, Type type)
157157
{
158-
// Explicity read values as dates from JSON with reader.
158+
// Explicitly read values as dates from JSON with reader.
159159
// We do this because otherwise dates are read as strings
160160
// and the JsonSerializer will use a conversion method that won't
161161
// preserve UTC in DateTime.Kind for UTC ISO8601 dates

src/Common/Utf8BufferTextReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static Utf8BufferTextReader Get(in ReadOnlySequence<byte> utf8Buffer)
3434
reader = new Utf8BufferTextReader();
3535
}
3636

37-
// Taken off the the thread static
37+
// Taken off the thread static
3838
_cachedInstance = null;
3939
#if DEBUG
4040
if (reader._inUse)

src/Common/Utf8BufferTextWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static Utf8BufferTextWriter Get(IBufferWriter<byte> bufferWriter)
4343
writer = new Utf8BufferTextWriter();
4444
}
4545

46-
// Taken off the the thread static
46+
// Taken off the thread static
4747
_cachedInstance = null;
4848
#if DEBUG
4949
if (writer._inUse)

src/Microsoft.AspNetCore.Http.Connections.Client/HttpConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ private HttpClient CreateHttpClient()
529529
httpMessageHandler = new AccessTokenHttpMessageHandler(httpMessageHandler, this);
530530
}
531531

532-
// Wrap message handler after HttpMessageHandlerFactory to ensure not overriden
532+
// Wrap message handler after HttpMessageHandlerFactory to ensure not overridden
533533
httpMessageHandler = new LoggingHttpMessageHandler(httpMessageHandler, _loggerFactory);
534534

535535
var httpClient = new HttpClient(httpMessageHandler);

src/Microsoft.AspNetCore.Http.Connections/Internal/HttpConnectionDispatcher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ private async Task ExecuteAsync(HttpContext context, ConnectionDelegate connecti
299299
// If the status code is a 204 it means the connection is done
300300
if (context.Response.StatusCode == StatusCodes.Status204NoContent)
301301
{
302-
// Cancel current request to release any waiting poll and let dispose aquire the lock
302+
// Cancel current request to release any waiting poll and let dispose acquire the lock
303303
currentRequestTcs.TrySetCanceled();
304304

305305
// We should be able to safely dispose because there's no more data being written
@@ -312,7 +312,7 @@ private async Task ExecuteAsync(HttpContext context, ConnectionDelegate connecti
312312
}
313313
else if (resultTask.IsFaulted)
314314
{
315-
// Cancel current request to release any waiting poll and let dispose aquire the lock
315+
// Cancel current request to release any waiting poll and let dispose acquire the lock
316316
currentRequestTcs.TrySetCanceled();
317317

318318
// transport task was faulted, we should remove the connection

src/Microsoft.AspNetCore.SignalR.Client.Core/HubConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ private async Task HandshakeAsync(ConnectionState startingConnectionState, Cance
714714
{
715715
// Adjust consumed and examined to point to the end of the handshake
716716
// response, this handles the case where invocations are sent in the same payload
717-
// as the the negotiate response.
717+
// as the negotiate response.
718718
consumed = buffer.Start;
719719
examined = consumed;
720720

src/Microsoft.AspNetCore.SignalR.Common/Protocol/HandshakeResponseMessage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class HandshakeResponseMessage : HubMessage
2121
/// <summary>
2222
/// Initializes a new instance of the <see cref="HandshakeResponseMessage"/> class.
2323
/// </summary>
24-
/// <param name="error">An optional response error message. A <c>null</c> error message indicates a succesful handshake.</param>
24+
/// <param name="error">An optional response error message. A <c>null</c> error message indicates a successful handshake.</param>
2525
public HandshakeResponseMessage(string error)
2626
{
2727
// Note that a response with an empty string for error in the JSON is considered an errored response

src/Microsoft.AspNetCore.SignalR.Core/IUserIdProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public interface IUserIdProvider
1212
/// <summary>
1313
/// Gets the user ID for the specified connection.
1414
/// </summary>
15-
/// <param name="connection">The connection get get the user ID for.</param>
15+
/// <param name="connection">The connection to get the user ID for.</param>
1616
/// <returns>The user ID for the specified connection.</returns>
1717
string GetUserId(HubConnectionContext connection);
1818
}

0 commit comments

Comments
 (0)