Skip to content

Commit 1dae7fe

Browse files
authored
[ServiceBus] Fix typos (Azure#16606)
* Fixed typos. * Update samples. * Apply suggestions from code review * Fixed remaining misspellings. * Apply suggestions from code review
1 parent 01d0c0f commit 1dae7fe

35 files changed

+89
-89
lines changed

sdk/core/Azure.Core.Experimental/src/Spatial/GeoBoundingBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ public override int GetHashCode()
8383
return HashCodeBuilder.Combine(West, South, East, North, MinAltitude, MaxAltitude);
8484
}
8585
}
86-
}
86+
}

sdk/core/Azure.Core.TestFramework/src/InstrumentClientInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void Intercept(IInvocation invocation)
2727

2828
var type = result.GetType();
2929
if (type.Name.EndsWith("Client") ||
30-
// Generated ARM clients will have a property containing the subclient that ends with Operations.
30+
// Generated ARM clients will have a property containing the sub-client that ends with Operations.
3131
(invocation.Method.Name.StartsWith("get_") && type.Name.EndsWith("Operations")))
3232
{
3333
invocation.ReturnValue = _testBase.InstrumentClient(type, result, Array.Empty<IInterceptor>());

sdk/core/Azure.Core.TestFramework/src/RecordEntry.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class RecordEntry
1717
private static readonly JsonWriterOptions RequestWriterOptions = new JsonWriterOptions();
1818
// Responses are usually formatted using Newtonsoft.Json that has more relaxed encoding rules
1919
// To enable us to store more responses as JSON instead of string in Recording files use
20-
// relaxed settings for roundrip
20+
// relaxed settings for roundtrip
2121
private static readonly JsonWriterOptions ResponseWriterOptions = new JsonWriterOptions()
2222
{
2323
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping
@@ -198,7 +198,7 @@ private void SerializeBody(Utf8JsonWriter jsonWriter, string name, byte[] reques
198198
// for the case where service response was pre-formatted
199199
// fallback to generic string writing
200200
using var memoryStream = new MemoryStream();
201-
// Settings of this writer should be in sync with the one used in deserialiation
201+
// Settings of this writer should be in sync with the one used in deserialization
202202
using (var reformattedWriter = new Utf8JsonWriter(memoryStream, writerOptions))
203203
{
204204
document.RootElement.WriteTo(reformattedWriter);

sdk/core/Azure.Core.TestFramework/src/RecordMatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public virtual RecordEntry FindMatch(RecordEntry request, IList<RecordEntry> ent
8383
var recordRequestUri = entry.RequestUri;
8484
if (entry.IsTrack1Recording)
8585
{
86-
//there's no domain name for request uri in track 1 record, so add it from reqeust uri
86+
//there's no domain name for request uri in track 1 record, so add it from request uri
8787
int len = 8; //length of "https://"
8888
int domainEndingIndex = uri.IndexOf('/', len);
8989
if (domainEndingIndex > 0)

sdk/core/Azure.Core.TestFramework/src/RecordedTestBase{TEnvironment}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected RecordedTestBase(bool isAsync, RecordedTestMode mode) : base(isAsync,
1919

2020
public override void StartTestRecording()
2121
{
22-
// Set the TestEnviironment Mode here so that any Mode changes in RecordedTestBase are picked up here also.
22+
// Set the TestEnvironment Mode here so that any Mode changes in RecordedTestBase are picked up here also.
2323
TestEnvironment.Mode = Mode;
2424

2525
base.StartTestRecording();

sdk/core/Azure.Core.TestFramework/src/UseSyncMethodsInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ MethodInfo GetMethodSlow()
204204
// If the previous check has any results, check if they have the same number of type arguments
205205
// (all of our cases today either specialize on 0 or 1 type
206206
// argument for the static or dynamic user schema approach)
207-
// Else, close each GenericMethodDefinition and compare its paramter types.
207+
// Else, close each GenericMethodDefinition and compare its parameter types.
208208
var withSimilarGenericArguments = genericDefs.Any() ?
209209
genericDefs.Where(m =>
210210
m.GetGenericArguments().Length ==

sdk/servicebus/Azure.Messaging.ServiceBus/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Dead lettering a message is similar to deferring with one main difference being
215215
```C# Snippet:ServiceBusDeadLetterMessage
216216
ServiceBusReceivedMessage receivedMessage = await receiver.ReceiveMessageAsync();
217217

218-
// deadletter the message, thereby preventing the message from being received again without receiving from the dead letter queue.
218+
// dead-letter the message, thereby preventing the message from being received again without receiving from the dead letter queue.
219219
await receiver.DeadLetterMessageAsync(receivedMessage);
220220

221221
// receive the dead lettered message with receiver scoped to the dead letter queue.

sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ServiceBusReceivedMessage deferredMessage = await receiver.ReceiveDeferredMessag
5757
```C# Snippet:ServiceBusDeadLetterMessage
5858
ServiceBusReceivedMessage receivedMessage = await receiver.ReceiveMessageAsync();
5959

60-
// deadletter the message, thereby preventing the message from being received again without receiving from the dead letter queue.
60+
// dead-letter the message, thereby preventing the message from being received again without receiving from the dead letter queue.
6161
await receiver.DeadLetterMessageAsync(receivedMessage);
6262

6363
// receive the dead lettered message with receiver scoped to the dead letter queue.

sdk/servicebus/Azure.Messaging.ServiceBus/src/Administration/CreateQueueOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public TimeSpan AutoDeleteOnIdle
159159
/// <summary>
160160
/// Indicates whether this queue has dead letter support when a message expires.
161161
/// </summary>
162-
/// <remarks>If true, the expired messages are moved to dead-letter sub-queue. Default value is false.</remarks>
162+
/// <remarks>If true, the expired messages are moved to dead-letter subqueue. Default value is false.</remarks>
163163
public bool DeadLetteringOnMessageExpiration { get; set; } = false;
164164

165165
/// <summary>
@@ -280,7 +280,7 @@ public string ForwardDeadLetteredMessagesTo
280280
public bool EnablePartitioning { get; set; } = false;
281281

282282
/// <summary>
283-
/// Custom metdata that user can associate with the queue.
283+
/// Custom metadata that user can associate with the queue.
284284
/// </summary>
285285
/// <remarks>Cannot be null. Max length is 1024 chars.</remarks>
286286
public string UserMetadata

sdk/servicebus/Azure.Messaging.ServiceBus/src/Administration/CreateSubscriptionOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public TimeSpan AutoDeleteOnIdle
129129
/// <summary>
130130
/// Indicates whether this subscription has dead letter support when a message expires.
131131
/// </summary>
132-
/// <remarks>If true, the expired messages are moved to dead-letter sub-queue. Default value is false.</remarks>
132+
/// <remarks>If true, the expired messages are moved to dead-letter subqueue. Default value is false.</remarks>
133133
public bool DeadLetteringOnMessageExpiration { get; set; } = false;
134134

135135
/// <summary>

0 commit comments

Comments
 (0)