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

◆ TryGet< TService >()

bool Sisus.Init.IServiceProvider.TryGet< TService > ( [NotNullWhen(true), MaybeNullWhen(false)] out TService service)

Tries to get a service of type TService that is accessible to clients Clients.Everywhere .

Template Parameters
TServiceType of the requested service.

This can be an interface that the returned implements, a base type that it derives from, or its exact concrete type.

Parameters
serviceWhen this method returns, contains the service of type TService , if available; otherwise, null. This parameter is passed uninitialized.
Returns
true if a service was provided; otherwise, false.

Implemented in Sisus.Init.ServiceProvider.