Revert Options implementation from CallConfig and IfConfig#3
Revert Options implementation from CallConfig and IfConfig#3kerryjiang merged 12 commits intomasterfrom
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.
Reverted in commit 5c0d1bc. CallConfig.cs now includes all the original using statements.
There was a problem hiding this comment.
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.
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.
Rename it to Options and keep it simple get and set, and revert other changes
There was a problem hiding this comment.
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.
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; |
src/NetInteractor/Config/IfConfig.cs
Outdated
|
|
||
| private NameValueCollection _options; | ||
|
|
||
| [XmlAnyAttribute] |
There was a problem hiding this comment.
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; |
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.