-
Notifications
You must be signed in to change notification settings - Fork 4
Revert Options implementation from CallConfig and IfConfig #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
…rSharpWebAccessorTests Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
…ptions Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
…ption Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
| using System; | ||
| using System.Collections.Specialized; | ||
| using System.Threading.Tasks; | ||
| using System.Xml; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change can be reverted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted in commit 5c0d1bc. CallConfig.cs now includes all the original using statements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert all changes in this file @copilot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already completed in commit a911bb1. CallConfig.cs has been reverted to match the original master branch - all Options-related code (26 lines) has been removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already completed in commit a911bb1. CallConfig.cs matches the original master branch.
| private NameValueCollection _options; | ||
|
|
||
| [XmlAnyAttribute] | ||
| public XmlAttribute[] UnknownAttributes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename it to Options and keep it simple get and set, and revert other changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in commit 5c0d1bc. Renamed UnknownAttributes to Options with simple get/set:
[XmlAnyAttribute]
public XmlAttribute[] Options { get; set; }The complex NameValueCollection handling has been removed for simplicity.
| } | ||
|
|
||
| public virtual async Task<ResponseInfo> PostAsync(string url, NameValueCollection formValues) | ||
| public virtual async Task<ResponseInfo> PostAsync(string url, NameValueCollection formValues, Config.InteractActionConfig config = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put the namespace to using.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in commit 5c0d1bc. Added using NetInteractor.Config; and removed the Config. prefix from parameter types.
Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
| using System; | ||
| using System.Collections.Specialized; | ||
| using System.Threading.Tasks; | ||
| using System.Xml; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert all changes in this file @copilot
src/NetInteractor/Config/IfConfig.cs
Outdated
|
|
||
| private NameValueCollection _options; | ||
|
|
||
| [XmlAnyAttribute] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert all changes in this file @copilot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already completed in commit a911bb1. IfConfig.cs has been reverted to match the original master branch - all Options-related code (25 lines) has been removed.
| using System; | ||
| using System.Collections.Specialized; | ||
| using System.Threading.Tasks; | ||
| using System.Xml; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the Options-related code from
CallConfigandIfConfigclasses, restoring them to their original state from master branch.Changes
Both classes now match their original implementation without the duplicate Options infrastructure. The Options property remains only in
InteractActionConfigbase class where it belongs.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.