@@ -157,11 +157,11 @@ public static Baggage SetBaggage(string name, string value, Baggage baggage = de
157
157
}
158
158
159
159
/// <summary>
160
- /// Returns a new <see cref="Baggage"/> which contains the new key/value pair .
160
+ /// Returns a new <see cref="Baggage"/> which contains the new key/value pairs .
161
161
/// </summary>
162
162
/// <param name="baggageItems">Baggage key/value pairs.</param>
163
163
/// <param name="baggage">Optional <see cref="Baggage"/>. <see cref="Current"/> is used if not specified.</param>
164
- /// <returns>New <see cref="Baggage"/> containing the key/value pair .</returns>
164
+ /// <returns>New <see cref="Baggage"/> containing the new key/value pairs .</returns>
165
165
/// <remarks>Note: The <see cref="Baggage"/> returned will be set as the new <see cref="Current"/> instance.</remarks>
166
166
[ SuppressMessage ( "roslyn" , "RS0026" , Justification = "TODO: fix APIs that violate the backcompt requirement - multiple overloads with optional parameters: https://github.com/dotnet/roslyn/blob/main/docs/Adding%20Optional%20Parameters%20in%20Public%20API.md." ) ]
167
167
public static Baggage SetBaggage ( IEnumerable < KeyValuePair < string , string > > baggageItems , Baggage baggage = default )
@@ -180,7 +180,7 @@ public static Baggage SetBaggage(IEnumerable<KeyValuePair<string, string>> bagga
180
180
/// </summary>
181
181
/// <param name="name">Baggage item name.</param>
182
182
/// <param name="baggage">Optional <see cref="Baggage"/>. <see cref="Current"/> is used if not specified.</param>
183
- /// <returns>New <see cref="Baggage"/> containing the key/value pair.</returns>
183
+ /// <returns>New <see cref="Baggage"/> with the key/value pair removed .</returns>
184
184
/// <remarks>Note: The <see cref="Baggage"/> returned will be set as the new <see cref="Current"/> instance.</remarks>
185
185
public static Baggage RemoveBaggage ( string name , Baggage baggage = default )
186
186
{
@@ -197,7 +197,7 @@ public static Baggage RemoveBaggage(string name, Baggage baggage = default)
197
197
/// Returns a new <see cref="Baggage"/> with all the key/value pairs removed.
198
198
/// </summary>
199
199
/// <param name="baggage">Optional <see cref="Baggage"/>. <see cref="Current"/> is used if not specified.</param>
200
- /// <returns>New <see cref="Baggage"/> containing the key/value pair .</returns>
200
+ /// <returns>New <see cref="Baggage"/> with all the key/value pairs removed .</returns>
201
201
/// <remarks>Note: The <see cref="Baggage"/> returned will be set as the new <see cref="Current"/> instance.</remarks>
202
202
public static Baggage ClearBaggage ( Baggage baggage = default )
203
203
{
@@ -252,18 +252,18 @@ public Baggage SetBaggage(string name, string value)
252
252
}
253
253
254
254
/// <summary>
255
- /// Returns a new <see cref="Baggage"/> which contains the new key/value pair .
255
+ /// Returns a new <see cref="Baggage"/> which contains the new key/value pairs .
256
256
/// </summary>
257
257
/// <param name="baggageItems">Baggage key/value pairs.</param>
258
- /// <returns>New <see cref="Baggage"/> containing the key/value pair .</returns>
258
+ /// <returns>New <see cref="Baggage"/> containing the key/value pairs .</returns>
259
259
public Baggage SetBaggage ( params KeyValuePair < string , string > [ ] baggageItems )
260
260
=> this . SetBaggage ( ( IEnumerable < KeyValuePair < string , string > > ) baggageItems ) ;
261
261
262
262
/// <summary>
263
- /// Returns a new <see cref="Baggage"/> which contains the new key/value pair .
263
+ /// Returns a new <see cref="Baggage"/> which contains the new key/value pairs .
264
264
/// </summary>
265
265
/// <param name="baggageItems">Baggage key/value pairs.</param>
266
- /// <returns>New <see cref="Baggage"/> containing the key/value pair .</returns>
266
+ /// <returns>New <see cref="Baggage"/> containing the key/value pairs .</returns>
267
267
public Baggage SetBaggage ( IEnumerable < KeyValuePair < string , string > > baggageItems )
268
268
{
269
269
if ( baggageItems ? . Any ( ) != true )
@@ -292,7 +292,7 @@ public Baggage SetBaggage(IEnumerable<KeyValuePair<string, string>> baggageItems
292
292
/// Returns a new <see cref="Baggage"/> with the key/value pair removed.
293
293
/// </summary>
294
294
/// <param name="name">Baggage item name.</param>
295
- /// <returns>New <see cref="Baggage"/> containing the key/value pair.</returns>
295
+ /// <returns>New <see cref="Baggage"/> with the key/value pair removed .</returns>
296
296
public Baggage RemoveBaggage ( string name )
297
297
{
298
298
var baggage = new Dictionary < string , string > ( this . baggage ?? EmptyBaggage , StringComparer . OrdinalIgnoreCase ) ;
@@ -304,7 +304,7 @@ public Baggage RemoveBaggage(string name)
304
304
/// <summary>
305
305
/// Returns a new <see cref="Baggage"/> with all the key/value pairs removed.
306
306
/// </summary>
307
- /// <returns>New <see cref="Baggage"/> containing the key/value pair .</returns>
307
+ /// <returns>New <see cref="Baggage"/> with all the key/value pairs removed .</returns>
308
308
public Baggage ClearBaggage ( )
309
309
=> default ;
310
310
0 commit comments