Init(args)
Scripting Reference
Loading...
Searching...
No Matches

◆ IsServiceProviderFor< TService >()

static bool Sisus.Init.Service.IsServiceProviderFor< TService > ( [DisallowNull] Component client,
[DisallowNull] object test )
static

Gets a value indicating whether test is a value provider service which is accessible to client.

NOTE: Does not consider whether test is the closest service provider for the client. It's possible that even if this method returns true, there are other services with the same defining type at a closer proximity to the client, which would be prioritized over this one when initializing the client.

Parameters
clientType of the client.
testType of the object to test.
Template Parameters
TServiceType of the client's dependency.
Returns
test if true is a value provider service accessible to the client; otherwise, false.