/// <summary> /// Sends a NotificationRequestDeleteNotification message to a customer. /// </summary> /// <param name="correlatedHeader">The message header that the message to send is correlated with.</param> /// <param name="change">The object change.</param> /// <returns>The sent message on success; <c>null</c> otherwise.</returns> public virtual EtpMessage <DeleteNotification> DeleteNotification(IMessageHeader correlatedHeader, ObjectChange change) { var body = new DeleteNotification() { Delete = change, }; return(SendNotification(body, correlatedHeader: correlatedHeader)); }
/// <summary> /// Sends a NotificationRequestDeleteNotification message to a customer. /// </summary> /// <param name="request">The request.</param> /// <param name="change">The object change.</param> /// <returns>The message identifier.</returns> public long DeleteNotification(IMessageHeader request, ObjectChange change) { var header = CreateMessageHeader(Protocols.StoreNotification, MessageTypes.StoreNotification.DeleteNotification, request.MessageId); var notification = new DeleteNotification() { Delete = change }; return(Session.SendMessage(header, notification)); }
/// <summary> /// Handles the DeleteNotification message from a store. /// </summary> /// <param name="header">The message header.</param> /// <param name="notification">The DeleteNotification message.</param> protected virtual void HandleDeleteNotification(IMessageHeader header, DeleteNotification notification) { Notify(OnDeleteNotification, header, notification); }