ServiceContainer
StockSharp.Xaml.Charting
Provides access to services throughout Ultrachart. ServiceContainers are created one per UltrachartSurface instance, and shared between peripheral components such as AxisBase, BaseRenderableSeries, ChartModifierBase instances. For a full list of available services, see the remarks on ServiceContainer
Implements: IServiceContainer
Methods
GetService``1
public T GetService<T>()
result = serviceContainer.GetService()
Gets the service instance registered by type. For a full list of available services, see the remarks on ServiceContainer
Returns: The service instance, unique to this UltrachartSurface instance
RegisterService``1
public void RegisterService<T>(T instance)
serviceContainer.RegisterService(instance)
Registers the service.
- instance
- The instance.