blob: 562f4e5a7a4f363e56e7162082f0b7748da28d92 [file] [log] [blame]
// Copyright 2018 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.
import 'package:fidl_fuchsia_modular/fidl_async.dart' as fidl;
import 'package:fuchsia_services/services.dart';
final fidl.AgentContext _agentContext = () {
final proxy = fidl.AgentContextProxy();
connectToEnvironmentService(proxy);
return proxy;
}();
/// Method to return the singleton, connected [fidl.AgentContext].
///
/// Multiple calls to this method will result in the same context being
/// returned.
fidl.AgentContext getAgentContext() => _agentContext;