Skip to content

)} ,System.String)}

IEditServices.AddService(Func) method

Defined in

Type: IEditServices 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. void AddService<TContract>(Func<TContract> instanceFactory)
  • 2. void AddService<TContract>(Func<TContract> instanceFactory, string contract)

1. Overload

void AddService<TContract>(Func<TContract> instanceFactory)

Summary: Adds the service.

Type parameters

NameDescription
TContractThe service type.

Parameters

NameTypeDescription
instanceFactoryFuncThe instance factory.

2. Overload

void AddService<TContract>(Func<TContract> instanceFactory, string contract)

Summary: Adds the service.

Type parameters

NameDescription
TContractThe service type.

Parameters

NameTypeDescription
instanceFactoryFuncThe instance factory.
contractstringThe contract.