Skip to content

Conversation

@ddemeyer
Copy link
Contributor

@ddemeyer ddemeyer commented Nov 5, 2025

No description provided.

…erenceState CommunicationState.Faulted. Raised WriteDebug to WriteWarning to see if Faulted event handler is even triggered for for example private void BackgroundTaskClientChannelFaulted(object sender, EventArgs e)
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements recovery from faulted WCF communication states by enhancing channel state handling and exception management across the ISHRemote library. The changes enable automatic recovery when WCF channels enter faulted, closing, or closed states.

Key Changes:

  • Extended WCF channel state detection to handle Closing and Closed states in addition to Faulted
  • Added comprehensive exception handling for TimeoutException, CommunicationException, and AggregateException across all cmdlets
  • Modified faulted channel event handlers to log at verbose level instead of debug
  • Set disposed connection references to null in IshSession.Dispose()

Reviewed Changes

Copilot reviewed 90 out of 90 changed files in this pull request and generated 5 comments.

File Description
IshSession.cs Sets connection references to null after disposal for proper cleanup
InfoShareWcfSoapWithOpenIdConnectConnection.cs Extends channel state checks and changes fault handler logging to verbose level
InfoShareOpenApiWithOpenIdConnectConnection.cs Comments out OpenAPI client disposal (marked as TODO)
Multiple Cmdlet files Adds standardized exception handling for timeout, communication, and aggregate exceptions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ddemeyer ddemeyer merged commit f80698b into master Nov 6, 2025
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.

3 participants