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

Declaration

public void AsTransient()

Remarks

The following example illustrates how to use this method.

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