Skip to content

Revert Options implementation from CallConfig and IfConfig#3

Merged
kerryjiang merged 12 commits intomasterfrom
copilot/add-unit-test-for-redirect
Jan 22, 2026
Merged

Revert Options implementation from CallConfig and IfConfig#3
kerryjiang merged 12 commits intomasterfrom
copilot/add-unit-test-for-redirect

Conversation

Copy link
Contributor

Copilot AI commented Jan 22, 2026

Removed the Options-related code from CallConfig and IfConfig classes, restoring them to their original state from master branch.

Changes

  • CallConfig.cs: Removed Options property and XmlAnyAttribute handling (26 lines)
  • IfConfig.cs: Removed Options property and XmlAnyAttribute handling (25 lines)

Both classes now match their original implementation without the duplicate Options infrastructure. The Options property remains only in InteractActionConfig base 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.

Copilot AI and others added 4 commits January 22, 2026 01:09
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>
Copilot AI changed the title [WIP] Add unit test for JavaScript redirect handling Add JavaScript redirect support for PuppeteerSharpWebAccessor Jan 22, 2026
Copilot AI requested a review from kerryjiang January 22, 2026 01:16
…rSharpWebAccessorTests

Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
Copilot AI changed the title Add JavaScript redirect support for PuppeteerSharpWebAccessor Consolidate JavaScript redirect test into IntegrationTests Jan 22, 2026
Copilot AI and others added 2 commits January 22, 2026 01:51
…ptions

Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
…ption

Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
Copilot AI changed the title Consolidate JavaScript redirect test into IntegrationTests Make JavaScript redirect timeout configurable via XML attributes Jan 22, 2026
Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
Copilot AI changed the title Make JavaScript redirect timeout configurable via XML attributes Rename jsRedirectTimeout to loadDelay Jan 22, 2026
Co-authored-by: kerryjiang <456060+kerryjiang@users.noreply.github.com>
Copilot AI changed the title Rename jsRedirectTimeout to loadDelay Consolidate Options property to InteractActionConfig base class Jan 22, 2026
using System;
using System.Collections.Specialized;
using System.Threading.Tasks;
using System.Xml;
Copy link
Owner

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

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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.

Copy link
Owner

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

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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
Copy link
Owner

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

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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)
Copy link
Owner

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.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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>
Copilot AI changed the title Consolidate Options property to InteractActionConfig base class Revert Options implementation from CallConfig and IfConfig Jan 22, 2026
using System;
using System.Collections.Specialized;
using System.Threading.Tasks;
using System.Xml;
Copy link
Owner

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


private NameValueCollection _options;

[XmlAnyAttribute]
Copy link
Owner

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

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot AI requested a review from kerryjiang January 22, 2026 05:54
@kerryjiang kerryjiang merged commit 451a560 into master Jan 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants