Configuration.GetService

GetService(Type)

Gets the requested service.

public object GetService(Type serviceType)
ParameterTypeDescription
serviceTypeTypeThe type of service to retrieve.

Return Value

An instance of the service if it could be found, or null if it could not be found

See Also


GetService<T>()

Gets the requested service.

public T GetService<T>()
ParameterDescription
TServiceThe type of service to retrieve.

Return Value

An instance of the service if it could be found, or null if it could not be found

See Also