MixedRealityServiceRegistry Class

Definition

Static class that represents the Mixed Reality Toolkit service registry.

public ref class MixedRealityServiceRegistry abstract sealed
public static class MixedRealityServiceRegistry
type MixedRealityServiceRegistry = class
Public Class MixedRealityServiceRegistry
Inheritance
MixedRealityServiceRegistry

Remarks

The service registry is used to enable discovery of and access to active Mixed Reality Toolkit services at runtime without requiring direct code reference to a singleton style component.

Methods

AddService<T>(T, IMixedRealityServiceRegistrar)

Adds an IMixedRealityService instance to the registry.

ClearAllServices()

Clears the registry cache of all services

GetAllServices()

Returns readonly list of all services registered

GetAllServices(IMixedRealityServiceRegistrar)

Returns readonly list of all services registered for given registrar

RemoveService<T>(String)

Removes an IMixedRealityService instance from the registry.

RemoveService<T>(T, IMixedRealityServiceRegistrar)

Removes an IMixedRealityService instance from the registry.

RemoveService<T>(T)

Removes an IMixedRealityService instance from the registry.

TryGetService(Type, IMixedRealityService, IMixedRealityServiceRegistrar, String)

Gets the first instance of the requested service from the registry that matches the given query.

TryGetService<T>(T, IMixedRealityServiceRegistrar, String)

Gets the first instance of the requested service from the registry that matches the given query.

TryGetService<T>(T, String)

Gets the first instance of the requested service from the registry that matches the given query.

Applies to