Skip to content

ServiceLocatorMixins.GetView(IServiceLocator, string?) method

Defined in

Type: ServiceLocatorMixins Namespace: ReactiveMarbles.Locator Assembly: ReactiveMarbles.ViewModel.Core.dll

Applies to

net8.0, net8.0-android34.0, net8.0-ios17.2, net8.0-windows10.0.19041, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, net8.0-maccatalyst17.2, netstandard2.0, net462

Overloads

  • 1. public static IAmViewFor? GetView<T>(this IServiceLocator serviceLocator, string? contract = null) where T : class, IRxNavBase
  • 2. public static IAmViewFor? GetView(this IServiceLocator serviceLocator, IRxNavBase viewModel)

1. Overload

public static IAmViewFor? GetView<T>(this IServiceLocator serviceLocator, string? contract = null) where T : class, IRxNavBase

View source

Summary: Gets the service.

Type parameters

NameDescription
TThe Type.

Parameters

NameTypeDescription
serviceLocator[IServiceLocator](#The service locator.
contract = nullstring?The contract.

Returns: IAmViewFor? -- An instance.

Exceptions

TypeCondition
System.ArgumentNullExceptionserviceLocator.

2. Overload

public static IAmViewFor? GetView(this IServiceLocator serviceLocator, IRxNavBase viewModel)

View source

Summary: Gets the service.

Parameters

NameTypeDescription
serviceLocator[IServiceLocator](#The service locator.
viewModel[IRxNavBase](#The view model.

Returns: IAmViewFor? -- An instance.

Exceptions

TypeCondition
System.ArgumentNullExceptionserviceLocator.