You must do TRY / Catch indoor and outdoor units.
So the first method starts with Try
, - , catch , , .
logging catch, , , catch, - ", , WCF.Blah . "
, .
public class Service1 : IService1
{
public string GetData(int value)
{
try
{
return somemethod(value);
}
catch(Exception ex)
{
LoggingHelper.Log(ex);
return "Please Except our Appogies the WCF.Blah service has failed. Please review the server logs for complete details";
}
}