//-----------------------------------------------------------------------------
//
// Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
// A copy of the License is located at
//
// http://aws.amazon.com/apache2.0
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.
//
//-----------------------------------------------------------------------------
using System.Collections.Generic;
namespace Amazon.XRay.Recorder.Core.Plugins
{
///
/// Interface for plugin which collect information of runtime
///
public interface IPlugin
{
///
/// Gets the name of the origin associated with this plugin. By default, will infect segment with
/// the origin name of last loaded plugin.
///
string Origin { get; }
///
/// Gets the name of the service associated with this plugin.
///
/// The name of the service that this plugin is associated with.
string ServiceName { get; }
///
/// Gets the context of the runtime that this plugin is associated with.
///
/// When the method returns, contains the runtime context of the plugin, or null if the runtime context is not available.
/// true if the runtime context is available; Otherwise, false.
bool TryGetRuntimeContext(out IDictionary context);
}
}