Skip to content

Commit

Permalink
Backwards compatibility -- with Obsolete..
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaben committed Aug 12, 2024
1 parent 2a22290 commit dfe2eb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion Docker.Registry.DotNet.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32414.318
Expand Down
8 changes: 8 additions & 0 deletions src/Docker.Registry.DotNet/RegistryClientConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,12 @@ public IRegistryClient CreateClient()
this.AuthenticationProvider,
this.DefaultTimeout));
}

[Obsolete("Use Configuration.SetAuthenticationProvider() instead.")]
public IRegistryClient CreateClient(AuthenticationProvider authenticationProvider)
{
this.SetAuthenticationProvider(authenticationProvider);

return this.CreateClient();
}
}

0 comments on commit dfe2eb6

Please sign in to comment.