Skip to content
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

Merge partial classes and complete IForwardedPort interface #1223

Merged
merged 7 commits into from Oct 25, 2023

Conversation

drieseng
Copy link
Member

@drieseng drieseng commented Oct 25, 2023

  • Merge partial classes.
  • Complete IForwardedPort interface.
  • Expose Closing event publicly on ForwardedPort.
  • Disable CA1030 (use events where appropriate).

Note:

Complete IForwardedPort interface.
Expoe Closing event publicly on ForwardedPort.
Disable CA1030 (use events where appropriate).
Copy link
Collaborator

@Rob-Hague Rob-Hague left a comment

Choose a reason for hiding this comment

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

Thanks for splitting it up

src/Renci.SshNet/IForwardedPort.cs Show resolved Hide resolved
src/Renci.SshNet/ForwardedPortDynamic.cs Outdated Show resolved Hide resolved
src/Renci.SshNet/ForwardedPortRemote.cs Show resolved Hide resolved
src/Renci.SshNet/ScpClient.cs Outdated Show resolved Hide resolved
Complete IForwardedPort interface.
Expoe Closing event publicly on ForwardedPort.
Disable CA1030 (use events where appropriate).
Comment on lines 37 to 38
private static readonly Regex DirectoryInfoRe = new Regex(@"D(?<mode>\d{4}) (?<length>\d+) (?<filename>.+)", RegexOptions.Compiled););
private static readonly Regex TimestampRe = new Regex(@"T(?<mtime>\d+) 0 (?<atime>\d+) 0", RegexOptions.Compiled););
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
private static readonly Regex DirectoryInfoRe = new Regex(@"D(?<mode>\d{4}) (?<length>\d+) (?<filename>.+)", RegexOptions.Compiled););
private static readonly Regex TimestampRe = new Regex(@"T(?<mtime>\d+) 0 (?<atime>\d+) 0", RegexOptions.Compiled););
private static readonly Regex DirectoryInfoRe = new Regex(@"D(?<mode>\d{4}) (?<length>\d+) (?<filename>.+)", RegexOptions.Compiled);
private static readonly Regex TimestampRe = new Regex(@"T(?<mtime>\d+) 0 (?<atime>\d+) 0", RegexOptions.Compiled);

@WojciechNagorski WojciechNagorski merged commit 42ff920 into develop Oct 25, 2023
2 checks passed
@Rob-Hague Rob-Hague deleted the merge_partial_classes branch February 20, 2024 12:44
@WojciechNagorski WojciechNagorski added this to the 2023.0.1 milestone Feb 22, 2024
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.

None yet

3 participants