I'm developing a web site based on .NET MVC and I'm using WCF Service with ibatis.net.
In my controller I use a WCF service, but I don't dispose or close the WCF client. Should I close or dispose WCF clients?
public class HomeController : BaseResultController
{
// 1. Create WCF Service
SomeWCFClient mSomeWcfC = new SomeWCFClient();
public ActionResult Index(){
// 2. Used/Consume some Service
IList<SomeModel> lResultData = mSomeWcfC.GetSomeData();
// 3. [Q]Should I close WCF Service, here? If Yes, let me know Where should i write code
// If I don't have to do also let me know that
return View();
}
}