Search

You searched for the word(s): userid:344482

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 »