Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between client class and service class [closed]

Tags:

c#

oop

asp.net

What are client classes and a service class in a .net application and what is the difference between them ?

like image 907
Khursheed Avatar asked Jul 28 '15 04:07

Khursheed


People also ask

What is a client vs a service?

As a general rule, though, the terms can be used to describe the relationship between caller and callee. Given any two objects that interact, the object making a method call is a client, and the object being invoked is the service.

What is a client class?

Client classes are features of the network registrar that allow various users of a single network to use and share utilities and programs. There are many different types of client classes depending on the type of program and the different permissions or features that each user needs.

What is a service class?

A service class is a named group of work within a workload with similar performance goals, resource requirements, or business importance.

What is the difference between helper and service?

Service able to serve some clients, and often this is a SOA specific entity. Helper provides a set of methods which commonly are pure functions.


2 Answers

Both client and service are super-overloaded terms, so they can mean lots of different things, depending on context.

As a general rule, though, the terms can be used to describe the relationship between caller and callee.

Given any two objects that interact, the object making a method call is a client, and the object being invoked is the service.

Depending on context, an object can be both a client and a service, since a call stack is usually deeper than two calls.

like image 102
Mark Seemann Avatar answered Sep 28 '22 06:09

Mark Seemann


you are buying a vehicle from Yamaha, then you want a regular service to your vehicle, so you will be the client(Client class) of Yamaha and Yamaha(service class) will be your service provider for you.

like image 20
DeshDeep Singh Avatar answered Sep 28 '22 07:09

DeshDeep Singh