public override bool IsAlive() { NotificationService.Notification notification = new NotificationService.Notification(); notification.Url = DatabaseObject.Url; notification.Credentials = System.Net.CredentialCache.DefaultCredentials; notification.Ping(); return(true); }
/// <summary> /// Notifies by calling a CPR Notification web service /// </summary> /// <param name="notification"></param> public override void Notify(Data.EventNotification notification) { NotificationService.Notification notificationService = new NotificationService.Notification(); notificationService.Url = DatabaseObject.Url; notificationService.Credentials = System.Net.CredentialCache.DefaultCredentials; var wsdlNotif = notification.ToWsdl(); notificationService.Notify(wsdlNotif); }