Compartir a través de


AifServiceContainer.AddService<T>(Type, T) Method

Definition

Adds the service.

public:
generic <typename T>
 where T : class void AddService(Type ^ type, T service);
public void AddService<T>(Type type, T service) where T : class;
member this.AddService : Type * 'T -> unit (requires 'T : null)
Public Sub AddService(Of T As Class) (type As Type, service As T)

Type Parameters

T

Specifies the type of service.

Parameters

type
Type

Specifies the service type, interface.

service
T

Specifies the service.

Applies to