mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-10 03:55:41 +00:00
Call ConfigureAwait(false)
This commit is contained in:
parent
e656436519
commit
7fe303c4eb
@ -49,7 +49,7 @@ public class VirtualParadiseModelObject : VirtualParadiseObject
|
|||||||
ArgumentNullException.ThrowIfNull(action);
|
ArgumentNullException.ThrowIfNull(action);
|
||||||
|
|
||||||
var builder = new VirtualParadiseModelObjectBuilder(Client, ObjectBuilderMode.Modify);
|
var builder = new VirtualParadiseModelObjectBuilder(Client, ObjectBuilderMode.Modify);
|
||||||
await Task.Run(() => action(builder)).ConfigureAwait(true);
|
await Task.Run(() => action(builder)).ConfigureAwait(false);
|
||||||
|
|
||||||
lock (Client.Lock)
|
lock (Client.Lock)
|
||||||
{
|
{
|
||||||
|
@ -105,16 +105,16 @@ public abstract class VirtualParadiseObject : IEquatable<VirtualParadiseObject>
|
|||||||
switch (phase)
|
switch (phase)
|
||||||
{
|
{
|
||||||
case BumpPhase.Begin:
|
case BumpPhase.Begin:
|
||||||
await SendBegin().ConfigureAwait(true);
|
await SendBegin().ConfigureAwait(false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BumpPhase.End:
|
case BumpPhase.End:
|
||||||
await SendEnd().ConfigureAwait(true);
|
await SendEnd().ConfigureAwait(false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case null:
|
case null:
|
||||||
await SendBegin().ConfigureAwait(true);
|
await SendBegin().ConfigureAwait(false);
|
||||||
await SendEnd().ConfigureAwait(true);
|
await SendEnd().ConfigureAwait(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user