Skip to content

ServiceLocator.GetLazyService() method

Defined in

Type: ServiceLocator Namespace: ReactiveMarbles.Locator Assembly: ReactiveMarbles.Locator.dll

Applies to

net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.0

Overloads

  • 1. public Lazy<T> GetLazyService<T>()
  • 2. public Lazy<T> GetLazyService<T>(string contract)

1. Overload

public Lazy<T> GetLazyService<T>()

View source

Inherited documentation

These docs were inherited from IGetServices. The member doesn't override them on this type.

Summary: Gets a lazy for a service.

Type parameters

NameDescription
TThe service type.

Returns: Lazy -- The lazy for the specified service type.

2. Overload

public Lazy<T> GetLazyService<T>(string contract)

View source

Inherited documentation

These docs were inherited from IGetServices. The member doesn't override them on this type.

Summary: Gets a lazy for a service.

Type parameters

NameDescription
TThe service type.

Parameters

NameTypeDescription
contractstringThe contract.

Returns: Lazy -- The lazy for the specified service type.