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

Remote events don't work for SingleCall services #118

Open
yallie opened this issue Jan 16, 2025 · 0 comments
Open

Remote events don't work for SingleCall services #118

yallie opened this issue Jan 16, 2025 · 0 comments

Comments

@yallie
Copy link
Collaborator

yallie commented Jan 16, 2025

Describe the bug
If a service is registered with SingleCall or Scoped lifetime, remote events don't work.

To Reproduce
Steps to reproduce the behavior:

  1. ServerFixture: use container.RegisterService<ITestService, TestService>(ServiceLifetime.SingleCall);
  2. Run Events_should_work_remotely unit test
  3. Event handler is not called

Expected behavior
Client-side event handler should be called.

Additional notes
Looks like factory registration doesn't break the client events:

container.RegisterService<ITestService>(() => new TestService(), ServiceLifetime.SingleCall).
yallie added a commit to yallie/CoreRemoting that referenced this issue Jan 16, 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

No branches or pull requests

1 participant