Tell me, how ideologically work with WCF-service in a WinForms application?
My current implementation in different parts of the code creates an intermediary. That is, the client needs to get data from sales, a method is called, and in this method an intermediary is created that pulls a couple of WCF service methods and the intermediary is destroyed.
How much is this true?
Or is it more correct to have a property with the type of intermediary in the main form and initialize it when creating the form, and then pass it as arguments to the designers of other forms?
Or are there more beautiful options?
UPD:
And one more question:
Suppose a service has multiple endpoints.
Accordingly, on the client side for each point you need your own proxy.
How to curb this zoo on the client side? Will it be correct to create on the client side a class that will store all proxies inside itself or is there something more beautiful?