// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace Microsoft.MixedReality.Toolkit
{
///
/// The base extension service implements and provides default properties for all extension services.
///
///
/// Empty, but reserved for future use, in case additional properties or methods are assigned.
///
public abstract class BaseExtensionService : BaseService, IMixedRealityExtensionService
{
///
/// Constructor.
///
/// The instance that loaded the service.
/// The friendly name of the service.
/// The registration priority of the service.
/// The configuration profile for the service.
[System.Obsolete("This constructor is obsolete (registrar parameter is no longer required) and will be removed in a future version of the Microsoft Mixed Reality Toolkit.")]
protected BaseExtensionService(
IMixedRealityServiceRegistrar registrar,
string name = null,
uint priority = DefaultPriority,
BaseMixedRealityProfile profile = null) : this(name, priority, profile)
{
Registrar = registrar;
}
///
/// Constructor.
///
/// The friendly name of the service.
/// The registration priority of the service.
/// The configuration profile for the service.
protected BaseExtensionService(
string name = null,
uint priority = DefaultPriority,
BaseMixedRealityProfile profile = null) : base()
{
Name = name;
Priority = priority;
ConfigurationProfile = profile;
}
///
/// The service registrar instance that registered this service.
///
[System.Obsolete("The Registrar property is obsolete and will be removed in a future version of the Microsoft Mixed Reality Toolkit")]
protected IMixedRealityServiceRegistrar Registrar { get; set; } = null;
}
}