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.v18.2.dll

Declaration

public void AsTransient()

Remarks

The following example illustrates how to use this method.


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