[cs] Feat/deprecate ftp proxy cs #15922
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
🔗 Related Issues
💥 What does this PR do?
This pull request introduces deprecation warnings and updates related to FTP proxy support in the
Proxyclass, as well as corresponding adjustments in the test suite. The changes aim to mark FTP proxy functionality as deprecated, with plans for removal in future versions, while maintaining backward compatibility for now.Deprecation of FTP Proxy Support:
dotnet/src/webdriver/Proxy.cs: Added[Obsolete]attribute and remarks to mark FTP proxy support as deprecated and slated for removal in future versions. Updated relevant properties and methods to reflect this deprecation. [1] [2]dotnet/src/webdriver/Proxy.cs: Included TODO comments referencing GitHub issue [🚀 Feature]: Deprecate/Remove FTP Proxy support from all bindings #15905 to document the planned removal of FTP proxy functionality. [1] [2]Updates to Test Suite:
dotnet/test/common/ProxyTest.cs: Added TODO comments in multiple test methods to highlight the deprecation of FTP proxy support and its planned removal. Updated assertions and test cases to ensure compatibility with the deprecated functionality. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Other
Description
• Deprecate FTP proxy support in .NET Proxy class
• Add Obsolete attributes and documentation warnings
• Update test suite with deprecation comments
• Maintain backward compatibility during transition
Changes walkthrough 📝
Proxy.cs
Deprecate FTP proxy support with obsolete attributesdotnet/src/webdriver/Proxy.cs
• Added [Obsolete] attribute to FTP proxy field and property
• Added
deprecation remarks to FtpProxy property documentation
• Added TODO
comments referencing GitHub issue for future removal
• Maintained
backward compatibility while marking as deprecated
ProxyTest.cs
Update tests with FTP proxy deprecation commentsdotnet/test/common/ProxyTest.cs
• Added TODO comments before all FTP proxy test assertions
•
Referenced GitHub issue for future removal in comments
• Added extra
newline for formatting consistency
• Maintained existing test
functionality while documenting deprecation