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

Service proxy should implement specific interfaces #35

Open
solyutor opened this issue Aug 19, 2015 · 0 comments
Open

Service proxy should implement specific interfaces #35

solyutor opened this issue Aug 19, 2015 · 0 comments

Comments

@solyutor
Copy link
Member

There are few interface that's control service host behavior:

  • ServiceControl,
  • ServiceShutdown,
  • ServiceRecoveryConfigurator

It's better to implement them in service proxy than call to service configurator like this:

x.Service<ServiceProxy>(s =>
                {
                    s.ConstructUsing(name => new ServiceProxy(serviceType));
                    s.WhenStarted(StartService);
                    s.WhenStopped(tc => tc.Stop());
                    s.WhenShutdown(tc => tc.Stop());
                });
@solyutor solyutor modified the milestones: 0.1 Introduce jobs. , 0.2 Introduce jobs. , 0.1 Consul configured services Aug 19, 2015
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