Responder Developer Guide
ToCustomLifetimeManager Method (TinyIoCContainer.RegisterOptions)


RegisterOptions instance
Custom lifetime manager
Error string to display if switch fails
Switches to a custom lifetime manager factory if possible. Usually used for RegisterOptions "To*" extension methods such as the ASP.Net per-request one.
Syntax
'Declaration
 
Public Shared Function ToCustomLifetimeManager( _
   ByVal instance As TinyIoCContainer.RegisterOptions, _
   ByVal lifetimeProvider As TinyIoCContainer.ITinyIoCObjectLifetimeProvider, _
   ByVal errorString As String _
) As TinyIoCContainer.RegisterOptions
'Usage
 
Dim instance As TinyIoCContainer.RegisterOptions
Dim lifetimeProvider As TinyIoCContainer.ITinyIoCObjectLifetimeProvider
Dim errorString As String
Dim value As TinyIoCContainer.RegisterOptions
 
value = TinyIoCContainer.RegisterOptions.ToCustomLifetimeManager(instance, lifetimeProvider, errorString)

Parameters

instance
RegisterOptions instance
lifetimeProvider
Custom lifetime manager
errorString
Error string to display if switch fails

Return Value

RegisterOptions
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

TinyIoCContainer.RegisterOptions Class
TinyIoCContainer.RegisterOptions Members

 

 


Send Comment