public AuthenticationController() { log.Info("Entering AuthenticationController method"); log.Info("Initialize Service Proxy"); CrmProxy crmConn = new CrmProxy(); _serviceProxy = crmConn.GetCrmProxy(); log.Info("Initialize Service Proxy"); log.Info("Leaving AuthenticationController method"); }
public EntityApiController() { log.Info("Entered EntityApiController constructor"); try { CrmProxy crmConnection = new CrmProxy(); ServiceProxy = crmConnection.GetCrmProxy(); } catch (FaultException faultException) { log.Error("Error in EmailController constructor " + faultException.Message); throw new FaultException(" ==An Error Occured in retrieving the Organization Proxy== " + faultException.Message); } log.Info("Exiting EntityApiController constructor"); }