Skip to content

Conversation

@eduard-dumitru
Copy link
Collaborator

  • Refactored RemoteException in Dtos.cs to handle stack traces differently for .NET Core and other frameworks.
  • Implemented the DivideByZero operation in SystemService to test exceptions.
  • Added RemoteExceptionStackTrace_ShouldAlsoIncludeClientFrames test to validate stack trace inclusion of client and server frames.
  • Added ShouldPartiallyContainInOrder method in ShouldlyHelpers.cs for enumerable validation with logging.
  • Removed unused namespaces and improved exception handling for clarity.

- Refactored `RemoteException` in `Dtos.cs` to handle stack traces differently for .NET Core and other frameworks.
- Implemented the `DivideByZero` operation in `SystemService` to test exceptions.
- Added `RemoteExceptionStackTrace_ShouldAlsoIncludeClientFrames` test to validate stack trace inclusion of client and server frames.
- Added `ShouldPartiallyContainInOrder` method in `ShouldlyHelpers.cs` for enumerable validation with logging.
- Removed unused namespaces and improved exception handling for clarity.
@eduard-dumitru eduard-dumitru force-pushed the feature/remoteex_clientstacktrace branch from 94ab9d6 to af7467a Compare November 3, 2025 11:39
return value;
}

public static void ShouldPartiallyContainInOrder(this IEnumerable<string> haystack, IEnumerable<string> needles, [CallerArgumentExpression(nameof(haystack))] string? supersetExpression = null, [CallerArgumentExpression(nameof(needles))] string? subsetExpression = null)
Copy link
Member

Choose a reason for hiding this comment

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

I don't see the need of all this overhead just for logging. It can be far simpler

StackTrace = error.StackTrace;
if (error.StackTrace is not null)
{
SetRemoteStackTrace(error.StackTrace);
Copy link
Member

Choose a reason for hiding this comment

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

We should look into how the logs look with this change and if they help

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