You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suremaker edited this page Dec 11, 2012
·
1 revision
Spring.NET allows to specify scope for object definitions, which determines how object should be instantiated. The Spring.FluentContext offers methods to set two most commonly used scopes: singleton or prototype.
The singleton scope means that each request for object will result with return of the same instance, while for prototype, each time the new instance of object will be returned.
The following example shows how to define scopes for object definitions.