I just wanted to hear your Opinion about a WCF Client implementation.
I have an Server that provides several services like SecurityManager.
This service is defined in the Interface ISecurityManager and implemented in the Class SecurityManager.
So far everything is fine.
On the Client side I want to implement the services calls via a seperated Class. My question is whether I do this also in an SecurityManager Class which implements the same ISecurityManager Interface?
What is here the best practise?
Visual Studio Generator
You can ask Visual Studio to build a client for you, right-clicking your client project and adding a
Service Reference. There’s a dialog where you can either type your service url or discover it from within the solution.Creating a Client
You can build the client class inheriting from
ClientBase<ISecurityManager>, ISecurityManager. Being an operation example on this client class:Like a real man does
Or without any client class, just calling it:
Last two options assuming you already have configured the
ISecurityManagerclient: