blob: f2b26a0e61cd717780f586b1b0017af73b91c5d0 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "client.h"
namespace calculator_cli {
CalculatorClient::CalculatorClient() : CalculatorClient(sys::ComponentContext::Create()) {}
CalculatorClient::CalculatorClient(std::unique_ptr<sys::ComponentContext> context)
: context_(std::move(context)) {}
void CalculatorClient::Start() {
context_->svc()->Connect(calculator_.NewRequest());
}
} // namespace calculator_cli