Skip to content

Commit 27caf56

Browse files
committed
ConfigureAwait
1 parent 3fe84c0 commit 27caf56

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

WebApiClient/Attributes/ParameterAttributes/ParameterAttribute.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,27 +52,27 @@ public async Task BeforeRequestAsync(ApiActionContext context, ApiParameterDescr
5252
switch (this.Kind)
5353
{
5454
case Kind.Path:
55-
await pathQuery.BeforeRequestAsync(context, parameter);
55+
await pathQuery.BeforeRequestAsync(context, parameter).ConfigureAwait(false);
5656
break;
5757

5858
case Kind.Header:
59-
await headers.BeforeRequestAsync(context, parameter);
59+
await headers.BeforeRequestAsync(context, parameter).ConfigureAwait(false);
6060
break;
6161

6262
case Kind.Form:
63-
await formContent.BeforeRequestAsync(context, parameter);
63+
await formContent.BeforeRequestAsync(context, parameter).ConfigureAwait(false);
6464
break;
6565

6666
case Kind.FormData:
67-
await formdataContent.BeforeRequestAsync(context, parameter);
67+
await formdataContent.BeforeRequestAsync(context, parameter).ConfigureAwait(false);
6868
break;
6969

7070
case Kind.JsonBody:
71-
await jsonContent.BeforeRequestAsync(context, parameter);
71+
await jsonContent.BeforeRequestAsync(context, parameter).ConfigureAwait(false);
7272
break;
7373

7474
case Kind.XmlBody:
75-
await xmlContent.BeforeRequestAsync(context, parameter);
75+
await xmlContent.BeforeRequestAsync(context, parameter).ConfigureAwait(false);
7676
break;
7777
}
7878
}

0 commit comments

Comments
 (0)