6#include <userver/components/component_config.hpp>
7#include <userver/components/component_context.hpp>
9#include <userver/ugrpc/client/client_factory_component.hpp>
11USERVER_NAMESPACE_BEGIN
57template <
typename Client>
58class SimpleClientComponent final :
public impl::SimpleClientComponentAny {
60 SimpleClientComponent(
const components::ComponentConfig& config,
62 : SimpleClientComponentAny(config, context),
64 .FindComponent<ClientFactoryComponent>(
65 config[
"factory-component"].As<std::string>(
66 ClientFactoryComponent::kName))
69 config.Name(), config[
"endpoint"].As<std::string>())) {}
82template <
typename Client>
84 kHasValidate<ugrpc::client::SimpleClientComponent<Client>> =
true;