public WeatherServiceEuropeCustomHandler() { // you need just this line in web-service constructor to apply your custom handlers to all operation methods // default WCF behavior is assumed here - creating new class instance 'per call' SoapLoggerService.CallCustomHandlers(this); }
public override WeatherReport GetLastReportByLocation(string location) { SoapLoggerService.CallCustomHandlers(this); return(base.GetLastReportByLocation(location)); }
public override WeatherReport[] GetForecastByLocation(string location, int days) { SoapLoggerService.CallCustomHandlers(new CustomHandler_GetForecastByLocation()); return(base.GetForecastByLocation(location, days)); }
public override long SendReport(WeatherReport report) { SoapLoggerService.CallCustomHandlers(this); return(base.SendReport(report)); }