Skip to content

Service proxy should implement specific interfaces #35

@solyutor

Description

@solyutor

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());
                });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions