ApplicationServicesContext.GetService<T> method¶
Returns the service, or null if it is not registered or the context has not been initialized yet.
Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet Package: Eremex.Avalonia.Controls.ApplicationServices
Declaration¶
Type Parameters¶
| name | description |
|---|---|
| T | The service type to resolve, normally an interface. |
Returns¶
| type | description |
|---|---|
T? |
The registered service instance, or null when the service is not registered or Current has not been set. |