Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
jeffKotula #1
Member since Aug 2011 · 12 posts
Group memberships: Members, Premium
Show profile · Link to this post
Subject: Are PresenceManager/RosterManager light-weight enough to create/recreate as needed?
If they are not, I'll need to cache them upon initial creation. But if they are I'll just make them as I need them. Does Dispose() need to be called on them, or will just releasing the reference take care of everything?
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
They are lightweight. It doesn't matter if you use them global or create new instances whenever you need them.
In Some projects we have lots of instances of the PreseceManager without any problems.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS