BaseServiceManager Class

Definition

Base class providing service registration and management functionality. This class can be used to implement a custom service management component for one or more services, similar to the MixedRealityToolkit object.

public ref class BaseServiceManager : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::IMixedRealityServiceRegistrar
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/BaseServiceManager")]
public class BaseServiceManager : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.IMixedRealityServiceRegistrar
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/BaseServiceManager")>]
type BaseServiceManager = class
    inherit MonoBehaviour
    interface IMixedRealityServiceRegistrar
Public Class BaseServiceManager
Inherits MonoBehaviour
Implements IMixedRealityServiceRegistrar
Inheritance
UnityEngine.MonoBehaviour
BaseServiceManager
Derived
Attributes
UnityEngine.AddComponentMenuAttribute
Implements

Constructors

BaseServiceManager()

Fields

registeredServices

The collection of registered services.

Methods

GetService<T>(String, Boolean)

Gets the instance of the registered service.

GetServices<T>(String)

Gets the collection of the registered service instances matching the requested type.

Initialize<T>(Type, SupportedPlatforms, Object[])

Initialize a service.

IsServiceRegistered<T>(String)

Checks to see if a service of the specified type has been registered.

OnDestroy()
OnDisable()
OnEnable()
RegisterService<T>(T)

Registers a service of the specified type.

RegisterService<T>(Type, SupportedPlatforms, Object[])

Registers a service of the specified type.

Uninitialize<T>()

Uninitialize a service.

UnregisterService<T>(String)

Unregisters a service of the specified type.

UnregisterService<T>(T)

Unregisters a service.

Update()

Applies to