Click or drag to resize

DependencyInjectionGetT Method

Retrieve a service with lifetime management

Namespace:  Demo3D.Standard
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 17.00.05
Syntax
C#
public static T Get<T>(
	this ILifetimeScope scope
)

Parameters

scope
Type: ILifetimeScope

[Missing <param name="scope"/> documentation for "M:Demo3D.Standard.DependencyInjection.Get``1(Autofac.ILifetimeScope)"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Demo3D.Standard.DependencyInjection.Get``1(Autofac.ILifetimeScope)"]

Return Value

Type: T

[Missing <returns> documentation for "M:Demo3D.Standard.DependencyInjection.Get``1(Autofac.ILifetimeScope)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILifetimeScope. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also