Object pooling in .net, DOT NET Programming

How object pooling in .NET is done

COM+ reduces overhead by creating object from scratch. Thus  in COM+ when object is activated its activated from pool and when its deactivated it's pushed back to the pool. Object pooling was configured by using the "ObjectPoolingAttribute" to the class.

ObjectPooling(MinPoolSize := 2, MaxPoolSize := 5, CreationTimeout := 20000)> _

Public Class testingclass

Inherits ServicedComponent

Public Sub DoWork()

'Method contents go here.

 End Sub

 End Class

The sample Code above has the "ObjectPooling" attribute defined. Below is a sample code which uses the class.

Public Class

App Overloads Public Shared Sub Main(args() As String)

Dim xyz As New TestObjectPooling()

 xyz.doWork()

ServicedComponent.DisposeObject (xyz)

End Sub

End Class

Posted Date: 9/21/2012 7:31:59 AM | Location : United States







Related Discussions:- Object pooling in .net, Assignment Help, Ask Question on Object pooling in .net, Get Answer, Expert's Help, Object pooling in .net Discussions

Write discussion on Object pooling in .net
Your posts are moderated
Related Questions
Explain simple Walk through of XmlReader. In this part we will do a simple walkthrough of how to use the "XmlReader" class. The Sample for the same is available in both languag

What is Absolute and Sliding expiration? The Absolute Expiration allows you to specify the duration of the cache, beginning from the time the cache is activated. The given exam

What is an activity? In Windows Workflow Foundation 4.0, an activity is the basic unit of composition and implementation of a workflow. Each activity in a workflow consists of

Explain Component diagrams Package: - The Package logically make group of element of a UML model. Component: - It is the actual physical module or implementation of

help me to prepare the above charts for my online vegetable selling project

Converting temperature from Fahrenheit to Celsius - Program C# I am facing some problems in the code for Converting temperature from Fahrenheit to Celsius. Can anybody suggest

A few changes to OutloProject Description: We require someone who is familiar with programming plug-in to work with Microsoft Outlook. Initially we just require a simple chan

I need Custom Login Page for Sharepoint 2013 with Active Directory Project Description: I would like to prepare a webpart or an application for Sharepoint 2013 foundation.

I have 10 domains which are presently parked, now I need a software/Bot which generate clicks on the ads placed on the website. These clicks which are generated should use proxy to

Encripter-Decripter application Project Description: I want an application which can encrypt - decrypt text, images, and music files as well as videos. Skills required are