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

Declaration

public void AsTransient()
Public Sub AsTransient

Remarks

The following example illustrates how to use this method.


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