Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
Hi @B M-A ,
- You can create a client in several ways: Service Reference, Svcutil.exe, Channel Factory, Client Base. You may pick and choose what works for you. Here is the example. https://learn.microsoft.com/en-us/dotnet/framework/wcf/wcf-client-overview.
- You should close it as recommended. And if you are using async methods, you should close it after the call completes. And remember to add try and catch on close in order to deal with exceptions.
Best Regards,
Jiayao Wu
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.