IAsyncServiceContainer Interface

Definition

Provides methods to add and remove services.

public interface class IAsyncServiceContainer
public interface class IAsyncServiceContainer
__interface IAsyncServiceContainer
public interface IAsyncServiceContainer
type IAsyncServiceContainer = interface
Public Interface IAsyncServiceContainer
Derived

Methods

AddService(Type, AsyncServiceCreatorCallback, Boolean)

Gets a service.

AddService(Type, AsyncServiceCreatorCallback)

Adds a service.

AddService(Type, AsyncServiceCreatorWithProgressCallback, Boolean)
AddService(Type, AsyncServiceCreatorWithProgressCallback)
RemoveService(Type, Boolean)

Removes the service of the type specified.

RemoveService(Type)

Removes the service of the type specified.

Extension Methods

ProfferService<TService>(IAsyncServiceContainer, Func<CancellationToken,Task<Object>>, Boolean)

Proffers a service implemented by the specified type to an async service container. When the service is queried the first time, the creator function will be called.

ProfferService<TService>(IAsyncServiceContainer, Func<CancellationToken,Task<Object>>)

Proffers a service implemented by the specified type to an async service container. When the service is queried the first time, the creator function will be called. The proffered service will be promoted to the parent async service container.

ProfferService<TService>(IAsyncServiceContainer, Func<Task<Object>>, Boolean)

Proffers a service implemented by the specified type to an async service container. When the service is queried the first time, the creator function will be called.

ProfferService<TService>(IAsyncServiceContainer, Func<Task<Object>>)

Proffers a service implemented by the specified type to an async service container. When the service is queried the first time, the creator function will be called. The proffered service will be promoted to the parent async service container.

Applies to