This documentation is archived and is not being maintained.

ServiceFactory<T> Delegate

Delegate for injecting a factory to create TeamFoundationServices in a way that can circumvent TeamFoundationRequestContext.GetService. This delegate can be used to facilitate Dependency Injection. Use these in a service consuming class constructor.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

generic<typename T>
public delegate T ServiceFactory(
	TeamFoundationRequestContext^ context
)

Type Parameters

T

The base type that the factory should return. This should be an interface, abstract or unsealed class with virtuals

Return Value

Type: T
Show: