Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public void AsTransient()

Remarks

The following example illustrates how to use this method.

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