Beispiel #1
0
        /// <summary>
        /// Sends a PartDeleteNotification message to a customer.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <param name="uri">The URI.</param>
        /// <param name="uid">The UID.</param>
        /// <param name="changeTime">The change time.</param>
        /// <returns>The message identifier.</returns>
        public long PartDeleteNotification(IMessageHeader request, string uri, string uid, long changeTime)
        {
            var header = CreateMessageHeader(Protocols.GrowingObjectNotification, MessageTypes.GrowingObjectNotification.PartDeleteNotification, request.MessageId);

            var message = new PartDeleteNotification
            {
                Uri        = uri,
                Uid        = uid,
                ChangeTime = changeTime
            };

            return(Session.SendMessage(header, message));
        }
 /// <summary>
 /// Handles the PartDeleteNotification message from a store.
 /// </summary>
 /// <param name="header">The message header.</param>
 /// <param name="notification">The PartDeleteNotification message.</param>
 protected virtual void HandlePartDeleteNotification(IMessageHeader header, PartDeleteNotification notification)
 {
     Notify(OnPartDeleteNotification, header, notification);
 }