S
Simon Hazelton
Is it possible in VB.net to have a single or singleton instance of a class
per specific database record.
I'm writing an auction site and have a problem with resolving proxy bids,
effectively I am creating an unlimited amount of "Auctioneers" for the site
as a whole (which is definitely wrong). I could create a singleton
"Auctioneer" Class for the site with a singleton but feel this would be a
performance botleneck.
Ideally I would like to ensure that only one instance of an "Auctioneer"
would be created per "Auction" thus ensuring that all proxy bids are
resolved in an ordered way.
Any ideas on how to resolve this issue or if I can achieve the desired
result using singletons will be greatly appreciated.
Simon Hazelton
per specific database record.
I'm writing an auction site and have a problem with resolving proxy bids,
effectively I am creating an unlimited amount of "Auctioneers" for the site
as a whole (which is definitely wrong). I could create a singleton
"Auctioneer" Class for the site with a singleton but feel this would be a
performance botleneck.
Ideally I would like to ensure that only one instance of an "Auctioneer"
would be created per "Auction" thus ensuring that all proxy bids are
resolved in an ordered way.
Any ideas on how to resolve this issue or if I can achieve the desired
result using singletons will be greatly appreciated.
Simon Hazelton