Skip to main content
A newer version of this page is available. .

TypeRegistration.AsTransient() Method

Modifies the registration so that a new dependency will be created on each IntegrityContainer.Resolve method call.

Namespace: DevExpress.Utils.IoC

Assembly: DevExpress.Data.v20.2.dll

NuGet Packages: DevExpress.Data, DevExpress.WindowsDesktop.Data

Declaration

public void AsTransient()

Remarks

The following example illustrates how to use this method.

IntegrityContainer.RegisterType<MyDependency>().AsTransient();
See Also