Skip to content

Conversation

Angeling3
Copy link
Collaborator

@Angeling3 Angeling3 commented Jan 20, 2025

fixed #13

# Conflicts:
#	src/IOKode.OpinionatedFramework.sln
Replaced non-generic job interfaces and implementations with type-safe generics. Introduced `JobArguments<TJob>` to encapsulate and initialize job arguments for a unified API. Updated job scheduling, queuing, and related extensions to support the new generic model.
Rename `QueueAsync` to `EnqueueAsync` for clarity and update job arguments to use `SendEmailJobArguments`.
Declare facade classes as partial to allow extensibility. Introduce the Job facade with a factory method to create jobs dynamically using optional arguments.
Simplify parameters for `RawProjection` method by switching from `IList<object>?` to `object?`. Introduce a new generic `Entity<TId>` class with a protected `Id` property to enhance entity modeling.
Simplify testing by removing redundant test base classes and reusing common container helpers. Replaced Docker-based test infrastructure with Hangfire.PostgreSql for consistency and improved maintainability. Adjusted test logic and dependency configuration appropriately.
Ensure that `DisposeAsync` skips rollback if the transaction is already rolled back.
Rename `Database` to `DatabaseName` in `MongoOptions` for clarity. Update and streamline `NHibernateTestsFixtureCollection` syntax. Move and rename `Job.cs` to `JobFacade.cs`.
This includes updates to database schema, repository methods, and related classes.
Remove unnecessary MongoDB setup and related code from JobsTestsFixture. Add "eventing" queue setup for BackgroundJobServer.
Refactor container helpers to remove unused parameters.
Extract MailHog container setup from MailKit tests into a reusable helper class.
@montyclt montyclt merged commit 0783fd7 into iokode:main Jan 20, 2025
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.

Events – dispatching and handling events
2 participants