Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:344482
More Search Options
RSS Available
Matching Posts
Re: Is it good to register a DAL object in COM+ ?
The simple answer to your question is no. The article you reference is from 2000 and discusses technologies at least 2 generations old. The speed of COM+ connection pooling VS. COM+ object pooling (to manage connections) is almost certainly irrelvant to the .NET 2.0 application you are building (based on info provided, at least). Ado.net provides connection pooling for you. Regarding your dal classes, i would pick one of these pieces of advice: 1) get over any fear of instantiating an object (don't
Posted to
Architecture
(Forum)
by
mikecole
on 1/31/2008
Re: ThreadPool Alternatives
I would suggest an abstraction around your use of the threadpool. Kind of a gatekeeper. So, a new JobScheduler class which contains a System.Collections.Queue. Also, properties: MaxJobs & CurrentJobsOutstanding. Method: SubmitJob(). His job is to pop items off your queue and call QueueUserWorkItem only when currentJobsOutstanding is below maxJobs. Again, just a gatekeeper for your use of the threadpool. Be sure to provide some thread syncronization around currentJobsOutstanding - since it will
Posted to
Architecture
(Forum)
by
mikecole
on 1/28/2008
Re: True effect of GC.SuppressFinalize(this)
Davidlars99, to answer your question more directly: Your instance of MyClass -will- be garbage collected. Your strings -will- be garbage collected. If you had implemented a finalizer (to clean up some unmanged resource) then GC.SuppressFinalize would have instructed the GC not to bother calling it. It has no effect on the managed objects in your example.
Posted to
Architecture
(Forum)
by
mikecole
on 1/23/2008
Re: Index a Hashtable by Integer
A hashtable is a set of key-value pairs. It cannot have multiple keys -- so there is no way to "add" another indexer. You probably need to create another collection of the same values indexed the way you need them. The key is of type object, so it can be an integer, no problem. If you want stronger typing use a generic Dictionary (its a hashtable underneath the covers). HTH, Mike.
Posted to
C#
(Forum)
by
mikecole
on 11/7/2006
Re: How to create method that takes List<T> of any type?
For example: List< int > mylist = new List< int >(); MyMethod< int >(mylist); HTH, Mike.
Posted to
C#
(Forum)
by
mikecole
on 11/7/2006
Re: Need advice for object oriented design
:: the Data access layer should be a class that returns a dataset? I would say no. The original post was seeking direction on an object-oriented solution. Datasets are not in this spirit. They drag a relational view of your data into your business logic. (lord, I'm not trying kick off this discussion...) :: wouldn't it be best that you send a query to that DAL instead of just the ID? The DAL can support whatever kind of query you want -- however simple or complex you want to make it. I feel thats
Posted to
Architecture
(Forum)
by
mikecole
on 8/12/2006
Re: Need advice for object oriented design
Sorry. This design is just not good. Email should be accessed via a property getter on the user class, not via a method like "GetEmailFromDatabase( )". What happens next, when you need, say... his age... another method: GetAgeFromDatabase( )? No way. You need to obtain a populated user object by whatever method you like (perhaps passing your ID to a DAL), and then query properties on this object for whatever you need - email or anything else. HTH, Mike
Posted to
Architecture
(Forum)
by
mikecole
on 8/11/2006
Re: Deploy assembly as GAC or web service?
"deploying an assembly as a webservice" is not an answer to any problem. If you have identified a need for a service in your enterprise - by all means build one. It should be a higher-level set of functionality that provides a facade (abstraction) of the work your underlying assemblies perform. Sharing assemblies is the correct way to re-use classes. Webservices solve a different problem. From your description alone, go with the former. Mike
Posted to
Architecture
(Forum)
by
mikecole
on 7/11/2006
Re: Accessing Application object from custom class
Radu094: I have build a custom class that I use for sending error reports by e-mail. In it, I use the "HttpContext.Current.Application" object to retrieve previously stored e-mail addresses and e-mail server addresses,etc. Something like: Ok - so you have this neat custom class for sending error reports by email. Why do you want to couple this class to a particular UI state management technology? Instead, supply the class with the data... Send the email addresses, etc as parameters. Accessing HttpContext
Posted to
State Management
(Forum)
by
mikecole
on 5/15/2006
Re: What is the Best OO modeling tool for .NET
Polar_Bear: Hi, I'm looking for a good free OO modeling tool, that will allow me to create my classes and print diagrams. I don't need code generation. Thanks http://jude.change-vision.com/jude-web/product/community.html
Posted to
Architecture
(Forum)
by
mikecole
on 5/15/2006
Page 1 of 12 (113 items) 1
2
3
4
5
Next >
...
Last »
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Channel 9:
Jeffrey Van Gogh and Bart De Smet: Inside System.Interactive
WindowsClient:
Runtime Fault Injection using TestAPI
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Silverlight:
Silverlight HVP Design Update
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online