Example #1
0
        public static bool PostNotification(Settings settings, string notificatioText)
        {
            var result = false;
            try
            {
                var client = new NotificationClient("BasicHttpBinding_INotification",
                    new EndpointAddress(ServiceUri + "/Notification.svc"));
                result = client.CreateNotification(settings.Customer.RefCode, settings.Customer.RefByCode,
                    notificatioText);

            }
            catch (Exception e)
            {
                Global.Logger.Fatal(e.Message);
            }
            return result;
        }