interface documentation

class IServiceCollection(Interface):

View In Hierarchy

An object which provides access to a collection of services.

Method addService Add a service to this collection.
Method getServiceNamed Retrieve the named service from this application.
Method removeService Remove a service from this collection.
def addService(service: object):

Add a service to this collection.

def getServiceNamed(serviceName: str) -> object:

Retrieve the named service from this application.

Raise a KeyError if there is no such service name.

def removeService(service: object):

Remove a service from this collection.