Skip to content

OverlayLayer.GetOrCreateService<T> method

Gets a registered service, creating it with the factory if not yet registered. The factory receives this OverlayLayer so the service can manage its own presenter controls.

public T GetOrCreateService<T>(Func<OverlayLayer, T> factory)
where T : IOverlayService