Skip to content

Commit 6f20b81

Browse files
authored
make sure Service.Requestor always defaults to the settings from the currently set client, if a requestor is not explicitly set (#2988)
1 parent c7eded4 commit 6f20b81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Stripe.net/Services/_base/Service.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ public IStripeClient Client
6060

6161
internal ApiRequestor Requestor
6262
{
63-
get => this.requestor;
63+
#pragma warning disable CS0618 // Type or member is obsolete
64+
get => this.requestor ?? new ApiRequestorAdapter(this.Client);
65+
#pragma warning restore CS0618 // Type or member is obsolete
6466
}
6567

6668
internal T Request<T>(

0 commit comments

Comments
 (0)