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

Added scoped services support #117

Merged
merged 4 commits into from
Jan 15, 2025
Merged

Added scoped services support #117

merged 4 commits into from
Jan 15, 2025

Conversation

yallie
Copy link
Collaborator

@yallie yallie commented Jan 15, 2025

Example:

using var server = new RemotingServer(new()
{
    RegisterServicesAction = container =>
        container.RegisterService<ILogger, Logger>(ServiceLifetime.Scoped);
});

Every remote call gets its own ILogger instance across all services requesting it.

@yallie yallie merged commit 69e3675 into theRainbird:master Jan 15, 2025
3 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.

1 participant