DataTable.GetService() ??

Published Sun, Aug 21 2005 18:12 | William

I've looked around google quite a bit and am trying to figure out where I'd use this.  can't seem to find any examples.  Has anyone used GetService()?  Is it just part of an interface/base class and that's why it's here or is there a specific problem it solves?  If it solves something, can you tip me off as to what that would be?

Filed under:

Comments

# William said on August 21, 2005 7:08 PM:

I think if you ring it the hotel people call your room and ask what you would like brought up.

# William said on August 21, 2005 7:54 PM:

Took me a second, but you cracked me up again - I needed that.

# William said on August 21, 2005 8:37 PM:

Use it to order designer drugs.

# William said on August 21, 2005 9:16 PM:

What kind of desinger drugs? BTW, did you get the USB Cable I sent? I didn't get the return receipt yet but I'm guessing you got it already. Holla back ;-)

# William said on August 22, 2005 2:54 AM:

Okay so if this were a dataset, would it be Full Service?

# William said on August 22, 2005 3:28 AM:

I think that this is used to implement the Service layer of the Shocker Class in WCF. I've seen this used with the GiveService(int, int) method in the MSDN documentation. The Patterns and Practices recommendation is GiveService(4, 4), if I'm not mistaken.

GetService() is used to specify the two endpoints of the service.

I may be wrong here, but you want to stick with GiveService() and save GetService for others that implement that interface. I've found that my clients show a higher rate of satisfaction when I use GiveService() correctly.

---O

# William said on August 22, 2005 3:39 AM:

BTW, I like the new subtitle. I'd replace "Satan" with "Barney, the Purple Dinosaur", seeing as they are synonyms anyways.

---O

# William said on August 22, 2005 10:18 AM:

Yo, I never did get the cable - but that's ok - I got one from a co-worker. Not sure what happened.

# William said on August 25, 2005 3:41 AM:

It's from MarshalByValueComponent. MarshalByValueComponent implements IServiceProvider which defines GetService(Type serviceType) as: "Gets the service object of the specified type.". See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemComponentModelMarshalByValueComponentMethodsTopic.asp and http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIServiceProviderMethodsTopic.asp

# William said on August 26, 2005 7:57 PM:

Thanks everyone, Wolfgang in particular - that clears up a lot.

Search

This Blog

Tags

Community

Archives

News

My other sites

Cool Stuff

Book Stuff

Security

ORM

Data Access

Funny Stuff

Compact Framework Stuff

Web Casts

My KnowledgeBase Articles

My MVP Profile

Design Patterns

Performance

Debugging

Remoting

My Fellow Authors

My Books

LINQ

Misc

Speech

Syndication

Email Notifications