public static void SendGraphItemsUpdated(GraphItemsUpdated graphEvent) { try { Log.Debug("SendGraphItemsUpdated", "Sending message over MSMQ"); _queue.Send(new Queuable <GraphItemsUpdated>(graphEvent)); } catch (Exception e) { Logger.Current.Error("SendGraphItemsUpdated", "Error sending message over MSMQ", e); } }
/// <summary> /// Send an event to the graph from the entity (Catalog, FO, BO) /// </summary> /// <param name="list">list of objects to update in the graph database</param> /// <param name="projectId">current project id</param> public void Send(IEnumerable <Common.Entities.Recommendation.Product> products, int projectId) { GraphItemsUpdated itemUpdated = Convert(products, projectId); SendGraphItemsUpdated(itemUpdated); }