@@ -90,7 +90,8 @@ public static FirebaseMessaging GetMessaging(FirebaseApp app)
90
90
/// <param name="message">The message to be sent. Must not be null.</param>
91
91
public async Task < string > SendAsync ( Message message )
92
92
{
93
- return await this . SendAsync ( message , false ) ;
93
+ return await this . SendAsync ( message , false )
94
+ . ConfigureAwait ( false ) ;
94
95
}
95
96
96
97
/// <summary>
@@ -111,7 +112,8 @@ public async Task<string> SendAsync(Message message)
111
112
/// operation.</param>
112
113
public async Task < string > SendAsync ( Message message , CancellationToken cancellationToken )
113
114
{
114
- return await this . SendAsync ( message , false , cancellationToken ) ;
115
+ return await this . SendAsync ( message , false , cancellationToken )
116
+ . ConfigureAwait ( false ) ;
115
117
}
116
118
117
119
/// <summary>
@@ -137,7 +139,8 @@ public async Task<string> SendAsync(Message message, CancellationToken cancellat
137
139
/// but it will not be delivered to any actual recipients.</param>
138
140
public async Task < string > SendAsync ( Message message , bool dryRun )
139
141
{
140
- return await this . SendAsync ( message , dryRun , default ( CancellationToken ) ) ;
142
+ return await this . SendAsync ( message , dryRun , default ( CancellationToken ) )
143
+ . ConfigureAwait ( false ) ;
141
144
}
142
145
143
146
/// <summary>
@@ -182,7 +185,8 @@ public async Task<string> SendAsync(
182
185
/// outcome.</returns>
183
186
public async Task < BatchResponse > SendAllAsync ( IEnumerable < Message > messages )
184
187
{
185
- return await this . SendAllAsync ( messages , false ) ;
188
+ return await this . SendAllAsync ( messages , false )
189
+ . ConfigureAwait ( false ) ;
186
190
}
187
191
188
192
/// <summary>
@@ -199,7 +203,8 @@ public async Task<BatchResponse> SendAllAsync(IEnumerable<Message> messages)
199
203
/// outcome.</returns>
200
204
public async Task < BatchResponse > SendAllAsync ( IEnumerable < Message > messages , CancellationToken cancellationToken )
201
205
{
202
- return await this . SendAllAsync ( messages , false , cancellationToken ) ;
206
+ return await this . SendAllAsync ( messages , false , cancellationToken )
207
+ . ConfigureAwait ( false ) ;
203
208
}
204
209
205
210
/// <summary>
@@ -217,7 +222,8 @@ public async Task<BatchResponse> SendAllAsync(IEnumerable<Message> messages, Can
217
222
/// outcome.</returns>
218
223
public async Task < BatchResponse > SendAllAsync ( IEnumerable < Message > messages , bool dryRun )
219
224
{
220
- return await this . SendAllAsync ( messages , dryRun , default ) ;
225
+ return await this . SendAllAsync ( messages , dryRun , default )
226
+ . ConfigureAwait ( false ) ;
221
227
}
222
228
223
229
/// <summary>
@@ -237,7 +243,8 @@ public async Task<BatchResponse> SendAllAsync(IEnumerable<Message> messages, boo
237
243
/// outcome.</returns>
238
244
public async Task < BatchResponse > SendAllAsync ( IEnumerable < Message > messages , bool dryRun , CancellationToken cancellationToken )
239
245
{
240
- return await this . messagingClient . SendAllAsync ( messages , dryRun , cancellationToken ) ;
246
+ return await this . messagingClient . SendAllAsync ( messages , dryRun , cancellationToken )
247
+ . ConfigureAwait ( false ) ;
241
248
}
242
249
243
250
/// <summary>
@@ -250,7 +257,8 @@ public async Task<BatchResponse> SendAllAsync(IEnumerable<Message> messages, boo
250
257
/// outcome.</returns>
251
258
public async Task < BatchResponse > SendMulticastAsync ( MulticastMessage message )
252
259
{
253
- return await this . SendMulticastAsync ( message , false ) ;
260
+ return await this . SendMulticastAsync ( message , false )
261
+ . ConfigureAwait ( false ) ;
254
262
}
255
263
256
264
/// <summary>
@@ -265,7 +273,8 @@ public async Task<BatchResponse> SendMulticastAsync(MulticastMessage message)
265
273
/// outcome.</returns>
266
274
public async Task < BatchResponse > SendMulticastAsync ( MulticastMessage message , CancellationToken cancellationToken )
267
275
{
268
- return await this . SendMulticastAsync ( message , false , cancellationToken ) ;
276
+ return await this . SendMulticastAsync ( message , false , cancellationToken )
277
+ . ConfigureAwait ( false ) ;
269
278
}
270
279
271
280
/// <summary>
@@ -285,7 +294,8 @@ public async Task<BatchResponse> SendMulticastAsync(MulticastMessage message, Ca
285
294
/// outcome.</returns>
286
295
public async Task < BatchResponse > SendMulticastAsync ( MulticastMessage message , bool dryRun )
287
296
{
288
- return await this . SendMulticastAsync ( message , dryRun , default ) ;
297
+ return await this . SendMulticastAsync ( message , dryRun , default )
298
+ . ConfigureAwait ( false ) ;
289
299
}
290
300
291
301
/// <summary>
@@ -309,7 +319,8 @@ public async Task<BatchResponse> SendMulticastAsync(
309
319
MulticastMessage message , bool dryRun , CancellationToken cancellationToken )
310
320
{
311
321
return await this . SendAllAsync (
312
- message . GetMessageList ( ) , dryRun , cancellationToken ) . ConfigureAwait ( false ) ;
322
+ message . GetMessageList ( ) , dryRun , cancellationToken )
323
+ . ConfigureAwait ( false ) ;
313
324
}
314
325
315
326
/// <summary>
@@ -321,7 +332,8 @@ public async Task<BatchResponse> SendMulticastAsync(
321
332
public async Task < TopicManagementResponse > SubscribeToTopicAsync (
322
333
IReadOnlyList < string > registrationTokens , string topic )
323
334
{
324
- return await this . instanceIdClient . SubscribeToTopicAsync ( registrationTokens , topic ) ;
335
+ return await this . instanceIdClient . SubscribeToTopicAsync ( registrationTokens , topic )
336
+ . ConfigureAwait ( false ) ;
325
337
}
326
338
327
339
/// <summary>
@@ -333,7 +345,8 @@ public async Task<TopicManagementResponse> SubscribeToTopicAsync(
333
345
public async Task < TopicManagementResponse > UnsubscribeFromTopicAsync (
334
346
IReadOnlyList < string > registrationTokens , string topic )
335
347
{
336
- return await this . instanceIdClient . UnsubscribeFromTopicAsync ( registrationTokens , topic ) ;
348
+ return await this . instanceIdClient . UnsubscribeFromTopicAsync ( registrationTokens , topic )
349
+ . ConfigureAwait ( false ) ;
337
350
}
338
351
339
352
/// <summary>
0 commit comments