6#include <userver/components/component_base.hpp>
8#include <userver/ugrpc/server/server.hpp>
10USERVER_NAMESPACE_BEGIN
15struct ServiceDefaults;
44class ServerComponent
final :
public components::ComponentBase {
50 ServerComponent(
const components::ComponentConfig& config,
const components::ComponentContext& context);
52 ~ServerComponent() override;
60 ParseServiceConfig(
const components::ComponentConfig& config,
const components::ComponentContext& context);
66 void OnAllComponentsLoaded() override;
68 void OnAllComponentsAreStopping() override;
71 std::unique_ptr<impl::ServiceDefaults> service_defaults_;
77inline constexpr bool components::kHasValidate<ugrpc::server::ServerComponent> =
true;