Skip to content

Commit

Permalink
Expose RestClient from ClientProvider (microsoft#5888)
Browse files Browse the repository at this point in the history
So that, we can get the corresponding RestClientProvider while
generating Resource in Azure plugin.
Corresponding PR in Azure plugin:
Azure/azure-sdk-for-net#47944
  • Loading branch information
live1206 authored and dmnorc committed Feb 18, 2025
1 parent 6bb5343 commit d2fdc9d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ private IReadOnlyList<ParameterProvider> GetClientParameters()
return null;
}

internal RestClientProvider RestClient => _restClient ??= new RestClientProvider(_inputClient, this);
/// <summary>
/// Gets the corresponding <see cref="RestClientProvider"/> for this client.
/// </summary>
public RestClientProvider RestClient => _restClient ??= new RestClientProvider(_inputClient, this);
internal Lazy<ClientOptionsProvider?> ClientOptions { get; }

public PropertyProvider PipelineProperty { get; }
Expand Down

0 comments on commit d2fdc9d

Please sign in to comment.