Skip to content

Updates to Foundatio v12#1955

Merged
niemyjski merged 5 commits intomainfrom
feature/upgrade-foundatio
Aug 21, 2025
Merged

Updates to Foundatio v12#1955
niemyjski merged 5 commits intomainfrom
feature/upgrade-foundatio

Conversation

@niemyjski
Copy link
Copy Markdown
Member

No description provided.

@niemyjski niemyjski requested review from Copilot and ejsmith August 19, 2025 22:05
@niemyjski niemyjski self-assigned this Aug 19, 2025
@niemyjski niemyjski added the dependencies Pull requests that update a dependency file label Aug 19, 2025
Copy link
Copy Markdown
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Member

@ejsmith ejsmith left a comment

Choose a reason for hiding this comment

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

There is no reason to be creating and passing the resilience policy provider into any of these classes unless we are changing their behavior which I have no idea why we would. Even if we use the resilience policy ourselves in Exceptionless, you still don't need to be passing it into any of the foundatio classes unless we are changing the behavior.

Topic = options.Topic,
Serializer = s.GetRequiredService<ISerializer>(),
TimeProvider = s.GetRequiredService<TimeProvider>(),
ResiliencePolicyProvider = s.GetRequiredService<IResiliencePolicyProvider>(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should not be passing this in unless you plan to change the default behavior.

Topic = options.Topic,
Serializer = s.GetRequiredService<ISerializer>(),
TimeProvider = s.GetRequiredService<TimeProvider>(),
ResiliencePolicyProvider = s.GetRequiredService<IResiliencePolicyProvider>(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should not be passing this in unless you plan to change the default behavior.

ContainerName = $"{options.ScopePrefix}ex-events",
Serializer = s.GetRequiredService<ITextSerializer>(),
TimeProvider = s.GetRequiredService<TimeProvider>(),
ResiliencePolicyProvider = s.GetRequiredService<IResiliencePolicyProvider>(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should not be passing this in unless you plan to change the default behavior.

ConnectionString = options.ConnectionString,
Serializer = s.GetRequiredService<ITextSerializer>(),
TimeProvider = s.GetRequiredService<TimeProvider>(),
ResiliencePolicyProvider = s.GetRequiredService<IResiliencePolicyProvider>(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should not be passing this in unless you plan to change the default behavior.

Folder = PathHelper.ExpandPath(path),
Serializer = s.GetRequiredService<ITextSerializer>(),
TimeProvider = s.GetRequiredService<TimeProvider>(),
ResiliencePolicyProvider = s.GetRequiredService<IResiliencePolicyProvider>(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should not be passing this in unless you plan to change the default behavior.

WorkItemTimeout = workItemTimeout.GetValueOrDefault(TimeSpan.FromMinutes(5.0)),
Serializer = container.GetRequiredService<ISerializer>(),
TimeProvider = container.GetRequiredService<TimeProvider>(),
ResiliencePolicyProvider = container.GetRequiredService<IResiliencePolicyProvider>(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should not be passing this in unless you plan to change the default behavior.

RunMaintenanceTasks = runMaintenanceTasks,
Serializer = container.GetRequiredService<ISerializer>(),
TimeProvider = container.GetRequiredService<TimeProvider>(),
ResiliencePolicyProvider = container.GetRequiredService<IResiliencePolicyProvider>(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should not be passing this in unless you plan to change the default behavior.

ConnectionMultiplexer = container.GetRequiredService<IConnectionMultiplexer>(),
Serializer = container.GetRequiredService<ISerializer>(),
TimeProvider = container.GetRequiredService<TimeProvider>(),
ResiliencePolicyProvider = container.GetRequiredService<IResiliencePolicyProvider>(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should not be passing this in unless you plan to change the default behavior.

WorkItemTimeout = workItemTimeout.GetValueOrDefault(TimeSpan.FromMinutes(5.0)),
Serializer = container.GetRequiredService<ISerializer>(),
TimeProvider = container.GetRequiredService<TimeProvider>(),
ResiliencePolicyProvider = container.GetRequiredService<IResiliencePolicyProvider>(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should not be passing this in unless you plan to change the default behavior.

{
Serializer = s.GetRequiredService<ITextSerializer>(),
TimeProvider = s.GetRequiredService<TimeProvider>(),
ResiliencePolicyProvider = s.GetRequiredService<IResiliencePolicyProvider>(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should not be passing this in unless you plan to change the default behavior.

Updates Foundatio packages to version 12.0.0 across multiple projects.

This ensures the application uses the latest features, bug fixes, and improvements available in the Foundatio libraries.
Updates the Foundatio.Xunit package to the latest stable version.
Refactors the `WaitForReadyAsync` extension method to no longer rely on the `ProxyTimeProvider`.
This simplifies the method signature and removes an unnecessary dependency.
The test server now relies on the standard `Task.Delay` method.
Removes the need for TimeProvider in TaskExtensions.WaitAsync and updates related test calls.
This simplifies the test code and relies on the default Task.Delay implementation.
@github-actions
Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
Exceptionless.Web 44% 32% 2938
Exceptionless.AppHost 19% 8% 87
Exceptionless.Insulation 27% 24% 231
Exceptionless.Core 66% 44% 8566
Summary 58% (9923 / 17249) 40% (3918 / 9690) 11822

@niemyjski niemyjski merged commit 55278cb into main Aug 21, 2025
4 of 6 checks passed
@niemyjski niemyjski deleted the feature/upgrade-foundatio branch August 21, 2025 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Development

Successfully merging this pull request may close these issues.

3 participants