Open sandboxFocus

Method WithService

WithService(IGlobalService)

Returns a new GlobalServiceProvider with an additional service.

Declaration
public GlobalServiceProvider WithService(IGlobalService service)
Parameters
Type Name Description
IGlobalService service

The service to add.

Returns
Type Description
GlobalServiceProvider

A new provider instance with the added service.